test: finish TODO for escape key hack

Fix was merged upstream so we can remove the hack.
This commit is contained in:
David Lechner
2022-11-22 15:56:56 -06:00
committed by David Lechner
parent 9fe62467d5
commit bb8015eae5
4 changed files with 9 additions and 39 deletions
+1 -9
View File
@@ -137,15 +137,7 @@ describe('Editor', () => {
expect(editor.getByRole('menuitem', { name: 'Copy' })).toHaveFocus(),
);
// FIXME: use userEvent instead of fireEvent
// blocked by https://github.com/palantir/blueprint/pull/5349
// await user.keyboard('{Escape}');
user;
fireEvent.keyDown(document.activeElement ?? document, {
key: 'Escape',
keyCode: 27,
which: 27,
});
await user.keyboard('{Escape}');
await waitFor(() => expect(contextMenu).not.toBeInTheDocument());