FIX: Bugs with autocomplete

It wasn't tearing itself down properly. It was swallowing events.
This commit is contained in:
Robin Ward
2015-04-06 14:04:22 -04:00
parent 2389bee24c
commit da9e2792eb
4 changed files with 41 additions and 14 deletions

View File

@ -22,7 +22,7 @@ test("modal", () => {
ok(find('#discourse-modal:visible').length === 1, 'modal should reappear');
});
keyEvent('#main-outlet', 'keyup', 27);
keyEvent('#main-outlet', 'keydown', 27);
andThen(() => {
ok(find('#discourse-modal:visible').length === 0, 'ESC should close the modal');
});