-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(suitheader and headeraction): fix accessibility scan violations
- Loading branch information
1 parent
ce44d8a
commit 3c0340b
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -237,13 +237,13 @@ describe( | |
.should('not.exist'); | ||
|
||
cy.findByRole('button', { name: 'open and close list of options' }).click(); | ||
cy.findByTestId('menuitem', { name: 'user', label: 'user' }).click(); | ||
cy.findByRole('menuitem', { name: 'user' }).click(); | ||
cy.findByText('[email protected]').should('be.visible'); | ||
cy.findByRole('menuitem', { name: 'user' }) | ||
cy.findByTestId('menuitem', { name: 'user' }) | ||
.find('svg') | ||
.invoke('attr', 'description') | ||
.should('eq', 'Close menu'); | ||
cy.findByRole('menuitem', { name: 'user' }).click(); | ||
cy.findByTestId('menuitem', { 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 | ||
|