FIX: close modals on ESC key and clicking outside
This commit is contained in:
@@ -13,7 +13,7 @@ QUnit.test("Can open the category modal", async assert => {
|
||||
await click(".edit-category");
|
||||
assert.ok(visible(".d-modal"), "it pops up a modal");
|
||||
|
||||
await click("a.close");
|
||||
await click("button.modal-close");
|
||||
assert.ok(!visible(".d-modal"), "it closes the modal");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user