Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ examples/**/static
examples/**/dist
cypress/videos
cypress/screenshots
cypress/downloads
/public
/storybook-static
.pnp.*
Expand Down
1 change: 1 addition & 0 deletions cypress/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import vitePreprocessor from 'cypress-vite';
export default defineConfig({
fixturesFolder: 'fixtures',
screenshotsFolder: 'screenshots',
downloadsFolder: 'downloads',
videosFolder: 'videos',
viewportWidth: 1280,
viewportHeight: 720,
Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/navigation.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ describe('Navigation', () => {
// additional rerenders, and otherwise it's the 'Skip to content' button that gets focused
cy.contains('John Doe');
cy.contains('Posts');
cy.get(ListPage.elements.profile).focus().tab();
cy.get(ListPage.elements.profile)
.focus()
.press(Cypress.Keyboard.Keys.TAB);

cy.get(`${ListPage.elements.menuItems}:first-child`).should(
'have.class',
Expand All @@ -27,7 +29,7 @@ describe('Navigation', () => {

ListPage.waitUntilVisible();

cy.get('body').tab();
cy.get('body').press(Cypress.Keyboard.Keys.TAB);

cy.get(ListPage.elements.skipNavButton).should('exist');
});
Expand Down
5 changes: 2 additions & 3 deletions cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
"test": "yarn node ./start.js"
},
"devDependencies": {
"cypress": "^10.9.0",
"cypress-plugin-tab": "^1.0.5",
"cypress-vite": "^1.4.0",
"cypress": "^15.0.0",
"cypress-vite": "^1.7.0",
"express": "^4.20.0"
}
}
2 changes: 0 additions & 2 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'cypress-plugin-tab';

/*
* This is a workaround for the ResizeObserver loop error that occurs in Cypress.
* See https://github.com/cypress-io/cypress/issues/20341
Expand Down
Loading
Loading