UX: don't show search and hamburger menus to anon visitors on login-required sites

This commit is contained in:
Neil Lalonde
2017-01-16 16:33:14 -05:00
parent fbf9172db8
commit 60a9030d25
3 changed files with 40 additions and 15 deletions

View File

@@ -26,19 +26,4 @@ test("redirect", () => {
andThen(() => {
ok(invisible('.login-modal'), "it closes the login modal");
});
click('#search-button');
andThen(() => {
ok(exists('.login-modal'), "clicking search opens the login modal");
});
click('.modal-header .close');
andThen(() => {
ok(invisible('.login-modal'), "it closes the login modal");
});
click('#toggle-hamburger-menu');
andThen(() => {
ok(exists('.login-modal'), "site map opens the login modal");
});
});