From da3f84c20bd2422216e8dbe23f7e6c017a06a9c9 Mon Sep 17 00:00:00 2001 From: Kalyani Raut Date: Thu, 22 Jun 2023 05:58:41 -0400 Subject: [PATCH] chore(suiteheader and headeraction): fix accessibility scan violations #3804 --- packages/react/src/components/Header/Header.test.e2e.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react/src/components/Header/Header.test.e2e.jsx b/packages/react/src/components/Header/Header.test.e2e.jsx index 0a0875b457..65aa5b3bbb 100644 --- a/packages/react/src/components/Header/Header.test.e2e.jsx +++ b/packages/react/src/components/Header/Header.test.e2e.jsx @@ -237,13 +237,13 @@ describe( .should('not.exist'); cy.findByRole('button', { name: 'open and close list of options' }).click(); - cy.findByRole('menuitem', { name: 'user' }).click(); + cy.findByRole('button', { name: 'user' }).click(); cy.findByText('JohnDoe@ibm.com').should('be.visible'); - cy.findByRole('menuitem', { name: 'user' }) + cy.findByRole('button', { name: 'user' }) .find('svg') .invoke('attr', 'description') .should('eq', 'Close menu'); - cy.findByRole('menuitem', { name: 'user' }).click(); + cy.findByRole('button', { name: 'user' }).click(); cy.findByRole('button', { name: 'open and close list of options' }).should('be.visible'); // click the left side specifically to _not_ click the svg element right in the center