Skip to content

Commit

Permalink
test: context-menu-component-tests > context-menu-actions not passed
Browse files Browse the repository at this point in the history
  • Loading branch information
NriotHrreion committed Oct 3, 2024
1 parent 5bb9238 commit 245a748
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ui/contextMenu/contextMenu.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,8 @@ describe("context-menu-component-tests", () => {
// separator cannot be clicked
break;
case 4:
// eslint-disable-next-line no-case-declarations
const mouseEvent = new MouseEvent("mouseenter", { bubbles: true });

itemElem.dispatchEvent(mouseEvent);
expect(document.getElementById("context-menu-provider").childNodes.length).toBe(1);
itemElem.dispatchEvent(new MouseEvent("mouseenter", { bubbles: true }));
expect(itemElem.querySelector(".sub-context-menu-container").childNodes.length).toBe(1);
break;
default:
break;
Expand Down

0 comments on commit 245a748

Please sign in to comment.