forked from farhoodlabs/paperclip
fix(ui): address final Greptile follow-up
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -33,6 +33,13 @@ describe("keyboardShortcuts helpers", () => {
|
||||
expect(hasBlockingShortcutDialog(document.createElement("div"))).toBe(false);
|
||||
});
|
||||
|
||||
it("ignores non-dialog elements that happen to be aria-modal", () => {
|
||||
const root = document.createElement("div");
|
||||
root.innerHTML = `<section aria-modal="true"></section>`;
|
||||
|
||||
expect(hasBlockingShortcutDialog(root)).toBe(false);
|
||||
});
|
||||
|
||||
it("archives only the first clean y press", () => {
|
||||
const button = document.createElement("button");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user