mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
Clean up clicking outside the hamburger, add test
This commit is contained in:
@ -17,6 +17,17 @@ test("Toggle Menu", (assert) => {
|
||||
andThen(() => {
|
||||
assert.ok(exists("#hamburger-menu.slideright"), "clicking the X hides it");
|
||||
});
|
||||
|
||||
click("#toggle-hamburger-menu");
|
||||
andThen(() => {
|
||||
assert.ok(!exists("#hamburger-menu.slideright"), "it opens again");
|
||||
});
|
||||
|
||||
click('#main-outlet')
|
||||
andThen(() => {
|
||||
assert.ok(exists("#hamburger-menu.slideright"), "clicking the body hides the menu");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
test("Menu Items", (assert) => {
|
||||
|
Reference in New Issue
Block a user