-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: More accessibility fixes (#29322)
* misc: Add tabindex to shiki code highlights so that it is accessible via the keyboard. * Add tabindex for code preview in error-header * Change h3 to h2 to meet a11y guidelines for incremental headers * Add roles for landmarks * Move navigation role to correct area * Update main to have singular role * update nav in banner to 'div' so there aren't 2 navs * Have an h1 on the Global page to address a11y violation * Fix aria-disabled attr to have valid 'true' value instead of 'disabled' * Add changelog entry * Fix tests that are looking for aria-disabled to now look for 'true' * chore: fix test that's failing in npm/react test
- Loading branch information
1 parent
f629856
commit 1bb5a73
Showing
23 changed files
with
67 additions
and
55 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe('Debug page states', () => { | |
cy.mount(<DebugErrored errors={[mockError]} totalSkippedSpecs={1} totalSpecs={1} />) | ||
|
||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Incomplete') | ||
cy.get('h2').contains('Incomplete') | ||
cy.contains(mockError) | ||
cy.contains('1 of 1 spec skipped').should('be.visible') | ||
}) | ||
|
@@ -46,7 +46,7 @@ describe('Debug page states', () => { | |
cy.mount(<DebugErrored errors={[mockError]} totalSkippedSpecs={4} totalSpecs={50} />) | ||
|
||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Incomplete') | ||
cy.get('h2').contains('Incomplete') | ||
cy.contains(mockError) | ||
cy.contains('4 of 50 specs skipped').should('be.visible') | ||
}) | ||
|
@@ -57,7 +57,7 @@ describe('Debug page states', () => { | |
cy.mount(<DebugNoTests />) | ||
|
||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Incomplete') | ||
cy.get('h2').contains('Incomplete') | ||
cy.contains('Run has no tests') | ||
}) | ||
}) | ||
|
@@ -67,7 +67,7 @@ describe('Debug page states', () => { | |
cy.mount(<DebugTimedout totalSkippedSpecs={4} totalSpecs={50} />) | ||
|
||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Incomplete') | ||
cy.get('h2').contains('Incomplete') | ||
cy.contains('The run started but never completed. This can happen when the run is cancelled from CI or when Cypress crashes while running tests. Archive this run to remove it from the runs list and analytics.') | ||
cy.contains('4 of 50 specs skipped') | ||
}) | ||
|
@@ -77,7 +77,7 @@ describe('Debug page states', () => { | |
ci={{ id: '123', url: 'https://circleci.com/', formattedProvider: 'CircleCI', ciBuildNumberFormatted: '12345' }} totalSkippedSpecs={4} totalSpecs={50} />) | ||
|
||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Incomplete') | ||
cy.get('h2').contains('Incomplete') | ||
cy.contains('The run started but never completed. This can happen when the run is cancelled from CI or when Cypress crashes while running tests. Check your CircleCI #12345 logs for more information. Archive this run to remove it from the runs list and analytics.') | ||
cy.findByTestId('external').contains('CircleCI #12345').should('have.attr', 'href', 'https://circleci.com/') | ||
cy.contains('4 of 50 specs skipped') | ||
|
@@ -189,7 +189,7 @@ describe('Debug page states', () => { | |
it('renders', () => { | ||
cy.mount(<DebugCancelledAlert totalSpecs={5} totalSkippedSpecs={2} cancellation={{ cancelledAt: '2019-01-25T02:00:00.000Z', cancelledBy: { email: '[email protected]', fullName: 'Test Tester' } }} />) | ||
cy.findByTestId('collapsible').should('be.visible') | ||
cy.get('h3').contains('Manually cancelled') | ||
cy.get('h2').contains('Manually cancelled') | ||
cy.contains('2 of 5 specs skipped') | ||
cy.findByTestId('cancelled-by-user-avatar').should('have.attr', 'style', 'background-image: url("https://s.gravatar.com/avatar/402f6cafb6c02371c2c23c5215ae3d85?size=48&default=mm");') | ||
cy.contains('Test Tester') | ||
|
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.
1bb5a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
1bb5a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
linux arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
1bb5a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
win32 x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
1bb5a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin arm64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally:
1bb5a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circle has built the
darwin x64
version of the Test Runner.Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version
Run this command to install the pre-release locally: