diff --git a/packages/core/src/components/hotkeys/hotkeysDialog.tsx b/packages/core/src/components/hotkeys/hotkeysDialog.tsx index b7ed4e38fd..be9b4199d1 100644 --- a/packages/core/src/components/hotkeys/hotkeysDialog.tsx +++ b/packages/core/src/components/hotkeys/hotkeysDialog.tsx @@ -91,7 +91,6 @@ class HotkeysDialog { diff --git a/packages/core/test/hotkeys/hotkeysTests.tsx b/packages/core/test/hotkeys/hotkeysTests.tsx index a24f4c0cfc..23784ed97f 100644 --- a/packages/core/test/hotkeys/hotkeysTests.tsx +++ b/packages/core/test/hotkeys/hotkeysTests.tsx @@ -113,7 +113,7 @@ describe("Hotkeys", () => { assertInputAllowsKeys("radio", true); }); - it("triggers hotkey dialog with \"?\"", (done) => { + it("triggers non-inline hotkey dialog with \"?\"", (done) => { const TEST_TIMEOUT_DURATION = 30; comp = mount(, { attachTo }); @@ -124,6 +124,7 @@ describe("Hotkeys", () => { // wait for the dialog to animate in setTimeout(() => { expect(document.querySelector(".pt-hotkey-column")).to.exist; + expect(document.querySelector(".pt-overlay-open").classList.contains("pt-overlay-inline")).to.be.false; hideHotkeysDialog(); comp.detach(); attachTo.remove();