mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 04:48:49 +08:00
UX: Clicking admin menu does not hide select posts box.
This commit is contained in:
@ -241,3 +241,21 @@ QUnit.test("remove featured link", assert => {
|
||||
// assert.ok(!exists('.title-wrapper .topic-featured-link'), 'link is gone');
|
||||
// });
|
||||
});
|
||||
|
||||
QUnit.test("selecting posts", async assert => {
|
||||
await visit("/t/internationalization-localization/280");
|
||||
await click(".toggle-admin-menu");
|
||||
await click(".topic-admin-multi-select .btn");
|
||||
|
||||
assert.ok(
|
||||
exists(".selected-posts:not(.hidden)"),
|
||||
"it should show the multi select menu"
|
||||
);
|
||||
|
||||
await click(".toggle-admin-menu");
|
||||
|
||||
assert.ok(
|
||||
exists(".selected-posts.hidden"),
|
||||
"it should hide the multi select menu"
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user