Skip to content

Commit afcf57f

Browse files
authored
Merge pull request #10913 from marmelab/upgrade-cypress
[chore] Upgrade Cypress
2 parents 2a337e6 + 6a9a23c commit afcf57f

File tree

6 files changed

+129
-132
lines changed

6 files changed

+129
-132
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ examples/**/static
1414
examples/**/dist
1515
cypress/videos
1616
cypress/screenshots
17+
cypress/downloads
1718
/public
1819
/storybook-static
1920
.pnp.*

cypress/cypress.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import vitePreprocessor from 'cypress-vite';
44
export default defineConfig({
55
fixturesFolder: 'fixtures',
66
screenshotsFolder: 'screenshots',
7+
downloadsFolder: 'downloads',
78
videosFolder: 'videos',
89
viewportWidth: 1280,
910
viewportHeight: 720,

cypress/e2e/navigation.cy.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ describe('Navigation', () => {
1212
// additional rerenders, and otherwise it's the 'Skip to content' button that gets focused
1313
cy.contains('John Doe');
1414
cy.contains('Posts');
15-
cy.get(ListPage.elements.profile).focus().tab();
15+
cy.get(ListPage.elements.profile)
16+
.focus()
17+
.press(Cypress.Keyboard.Keys.TAB);
1618

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

2830
ListPage.waitUntilVisible();
2931

30-
cy.get('body').tab();
32+
cy.get('body').press(Cypress.Keyboard.Keys.TAB);
3133

3234
cy.get(ListPage.elements.skipNavButton).should('exist');
3335
});

cypress/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
"test": "yarn node ./start.js"
88
},
99
"devDependencies": {
10-
"cypress": "^10.9.0",
11-
"cypress-plugin-tab": "^1.0.5",
12-
"cypress-vite": "^1.4.0",
10+
"cypress": "^15.0.0",
11+
"cypress-vite": "^1.7.0",
1312
"express": "^4.20.0"
1413
}
1514
}

cypress/support/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'cypress-plugin-tab';
2-
31
/*
42
* This is a workaround for the ResizeObserver loop error that occurs in Cypress.
53
* See https://github.com/cypress-io/cypress/issues/20341

0 commit comments

Comments
 (0)