FIX: login-required tests

This commit is contained in:
Régis Hanol 2015-03-26 12:09:30 +01:00
parent 512ad4dae3
commit b277e71c15
1 changed files with 8 additions and 10 deletions

View File

@ -20,22 +20,20 @@ test("redirect", () => {
ok(exists('.login-modal'), "they can still access the login modal");
});
// TODO Why is this failing, unable to repro this failure
// click('.modal-header .close');
// andThen(() => {
// ok(!exists('.login-modal'), "it closes the login modal");
// });
click('.modal-header .close');
andThen(() => {
ok(invisible('.login-modal'), "it closes the login modal");
});
click('#search-button');
andThen(() => {
ok(exists('.login-modal'), "clicking search opens the login modal");
});
// TODO Why is this failing, unable to repro this failure
// click('.modal-header .close');
// andThen(() => {
// ok(!exists('.login-modal'), "it closes the login modal");
// });
click('.modal-header .close');
andThen(() => {
ok(invisible('.login-modal'), "it closes the login modal");
});
click('#site-map');
andThen(() => {