Skip to content

Commit

Permalink
test(Menu): adjust a test case related to known issue that's now fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezamirian committed Jul 31, 2024
1 parent 2b0f085 commit 351c426
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jui/src/Menu/Menu.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ describe("Menu", () => {
cy.findByRole("menuitem", { name: "View Mode" }).should("have.focus");
});

// in the absence of it.fail():
it("(as a known issue) doesn't focus menu when there is a selected item, even in nested menus", () => {
it("focuses menu when there is a selected item, even in nested menus", () => {
cy.mount(<Nested autoFocus selectedKeys={["Pinned"]} />);
cy.findByRole("menu").should("not.have.focus"); // "not" is because of the known issue
cy.findByRole("menu").should("have.focus");
});

it("closes previously opened submenu, when a new submenu opens", () => {
Expand Down

0 comments on commit 351c426

Please sign in to comment.