FIX: close modals on ESC key and clicking outside

This commit is contained in:
Neil Lalonde
2019-10-28 17:23:21 -04:00
parent 64d51ab45e
commit f686ab988f
2 changed files with 3 additions and 3 deletions
@@ -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");
});