From ce44d8aa24aabbe3225e8900f34fe96632713a0b Mon Sep 17 00:00:00 2001 From: Kalyani Raut Date: Thu, 22 Jun 2023 13:22:27 -0400 Subject: [PATCH] chore(suiteheader and headeraction): fix accessibility scan violations #3804 --- packages/react/src/components/Header/Header.test.e2e.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/components/Header/Header.test.e2e.jsx b/packages/react/src/components/Header/Header.test.e2e.jsx index 0a0875b457..2197aeb638 100644 --- a/packages/react/src/components/Header/Header.test.e2e.jsx +++ b/packages/react/src/components/Header/Header.test.e2e.jsx @@ -237,7 +237,7 @@ describe( .should('not.exist'); cy.findByRole('button', { name: 'open and close list of options' }).click(); - cy.findByRole('menuitem', { name: 'user' }).click(); + cy.findByTestId('menuitem', { name: 'user', label: 'user' }).click(); cy.findByText('JohnDoe@ibm.com').should('be.visible'); cy.findByRole('menuitem', { name: 'user' }) .find('svg')