Skip to content

Commit 62496b7

Browse files
committed
Upgrade Cypress
1 parent df42551 commit 62496b7

File tree

5 files changed

+127
-132
lines changed

5 files changed

+127
-132
lines changed
116 KB
Binary file not shown.

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)