mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: don't show search and hamburger menus to anon visitors on login-required sites
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user