Skip to content

Commit

Permalink
Add support for Cypress v14
Browse files Browse the repository at this point in the history
  • Loading branch information
badeball committed Jan 17, 2025
1 parent 7702f44 commit 4d7d95f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file.

## Unreleased

Breaking changes:

- Dropped support for Cypress v10.

Other changes:

- Added support for Cypress v14, fixes [#1267](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1267).

## v21.0.3

- Correctly represent consecutive BeforeAll & AfterAll hooks in the command log, relates to [#1250](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1250).
Expand Down
1 change: 1 addition & 0 deletions features/support/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Before(async function ({ gherkinDocument, pickle }) {
`
Cypress.Commands.add("expectCommandLogEntry", ({ method, message }) => {
const selector = \`.command-info:has(> .command-method:contains('\${method}')) .command-message-text:contains('\${message}')\`;
cy.wait(0); // For unknown reasons, this became important with Cypress v14.
cy.then(() => {}).should(() => {
expect(Cypress.$(top.document).find(selector)).to.exist;
});
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"ast-types": "^0.15.2",
"cypress": "^13.13.2",
"cypress": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
"esbuild": "^0.23.1",
"eslint": "^9.8.0",
"genversion": "^3.2.0",
Expand All @@ -127,7 +127,7 @@
"webpack": "^5.93.0"
},
"peerDependencies": {
"cypress": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0"
"cypress": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"
},
"engines": {
"node": ">=18.0.0"
Expand Down

0 comments on commit 4d7d95f

Please sign in to comment.