From b277e71c1542271f9b2d522f5fe0a3792fbc524f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 26 Mar 2015 12:09:30 +0100 Subject: [PATCH] FIX: login-required tests --- .../integration/login-required-test.js.es6 | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/test/javascripts/integration/login-required-test.js.es6 b/test/javascripts/integration/login-required-test.js.es6 index f8e382c418e..082cc9b2ada 100644 --- a/test/javascripts/integration/login-required-test.js.es6 +++ b/test/javascripts/integration/login-required-test.js.es6 @@ -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(() => {