Skip to content

Commit

Permalink
Merge pull request #37 from 10up/upkeep/36
Browse files Browse the repository at this point in the history
Upgrade Cypress to 13
  • Loading branch information
iamdharmesh authored Sep 5, 2023
2 parents 9f2e5a9 + 9a288a1 commit 7f22646
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ try {

try {
execSync(
"npm install --save-dev cypress@10 @wordpress/env @10up/cypress-wp-utils",
"npm install --save-dev cypress@13 @wordpress/env @10up/cypress-wp-utils",
{ stdio: "inherit" }
);
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/.github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
core:
- {name: 'WP latest', version: 'latest'}
- {name: 'WP minimum', version: 'WordPress/WordPress#5.2'}
- {name: 'WP minimum', version: 'WordPress/WordPress#5.7'}
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion src/tests/cypress/e2e/admin.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe("Admin can login and open dashboard", () => {
before(() => {
beforeEach(() => {
cy.login();
});

Expand Down
6 changes: 0 additions & 6 deletions src/tests/cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,3 @@ import "@10up/cypress-wp-utils";
// Import commands.js using ES2015 syntax:
import "./commands";

// Preserve WP cookies.
beforeEach(() => {
Cypress.Cookies.defaults({
preserve: /^wordpress.*?/,
});
});

0 comments on commit 7f22646

Please sign in to comment.