This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
discourse/test/javascripts/integration/sign-in-test.js.es6

18 lines
516 B
Text
Raw Normal View History

2014-07-31 14:17:18 -04:00
integration("Signing In");
test("sign in with incorrect credentials", function() {
visit("/");
click("header .login-button");
andThen(function() {
ok(exists('.login-modal'), "it shows the login modal");
});
fillIn('#login-account-name', 'eviltrout');
fillIn('#login-account-password', 'where da plankton at?');
// The fixture is set to invalid login
click('.modal-footer .btn-primary');
andThen(function() {
// ok(exists('#modal-alert:visible', 'it displays the login error'));
});
});