-
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.
3804 suite header and header action fix accessibility scan violations (…
…#3807) * fix(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suiteheader and headeraction): fix accessibility scan violations #3804 * chore(suitheader and headeraction): fix accessibility scan violations #3804 * Update PageTitleBar.test.e2e.jsx
- Loading branch information
1 parent
f3cf4c2
commit dcad3b6
Showing
12 changed files
with
56 additions
and
89 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 |
---|---|---|
|
@@ -186,7 +186,7 @@ describe( | |
cy.findByLabelText('Announcements').should('be.visible'); | ||
cy.findByRole('button', { name: 'help' }).should('be.visible'); | ||
cy.findByRole('button', { name: 'open and close list of options' }).should('not.exist'); | ||
cy.findByRole('menuitem', { name: 'user' }).should('be.visible'); | ||
cy.findByRole('button', { name: 'user', label: 'user' }).should('be.visible'); | ||
}); | ||
|
||
it('should hide header action actions in a small viewport', () => { | ||
|
@@ -239,11 +239,11 @@ describe( | |
cy.findByRole('button', { name: 'open and close list of options' }).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 | ||
|
@@ -305,7 +305,9 @@ describe( | |
|
||
cy.findByRole('button', { name: 'open and close list of options' }).click(); | ||
cy.findByRole('menuitem', { name: 'Announcements' }).should('be.visible'); | ||
cy.findByRole('menuitem', { name: 'Custom icon 1' }).should('not.exist'); | ||
cy.findByRole('button', { name: 'Custom icon 1', label: 'Custom icon 1' }).should( | ||
'not.exist' | ||
); | ||
}); | ||
|
||
it('should get width from documentElement when innerWidth fails', () => { | ||
|
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
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
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
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
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
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
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
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
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
Oops, something went wrong.