Skip to content

Commit 0defd7a

Browse files
committed
Add support for Cypress v14
1 parent 7702f44 commit 0defd7a

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

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

5+
## Unreleased
6+
7+
Breaking changes:
8+
9+
- Dropped support for Cypress v10.
10+
11+
Other changes:
12+
13+
- Added support for Cypress v14, fixes [#1267](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1267).
14+
515
## v21.0.3
616

717
- Correctly represent consecutive BeforeAll & AfterAll hooks in the command log, relates to [#1250](https://github.com/badeball/cypress-cucumber-preprocessor/issues/1250).

examples/ct-vite-react-ts/cypress/component/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as preprocessor from "@badeball/cypress-cucumber-preprocessor";
22

3-
import { mount } from "cypress/react18"
3+
import { mount } from "cypress/react"
44

55
import App from "../../src/App";
66

examples/ct-webpack-react-ts/cypress/component/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Given, Then } from "@badeball/cypress-cucumber-preprocessor";
22

3-
import { mount } from "cypress/react18"
3+
import { mount } from "cypress/react"
44

55
import App from "../../src/App";
66

features/support/hooks.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Before(async function ({ gherkinDocument, pickle }) {
3333
`
3434
Cypress.Commands.add("expectCommandLogEntry", ({ method, message }) => {
3535
const selector = \`.command-info:has(> .command-method:contains('\${method}')) .command-message-text:contains('\${message}')\`;
36+
cy.wait(0); // For unknown reasons, this became important with Cypress v14.
3637
cy.then(() => {}).should(() => {
3738
expect(Cypress.$(top.document).find(selector)).to.exist;
3839
});

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"@typescript-eslint/eslint-plugin": "^8.0.0",
108108
"@typescript-eslint/parser": "^8.0.0",
109109
"ast-types": "^0.15.2",
110-
"cypress": "^13.13.2",
110+
"cypress": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
111111
"esbuild": "^0.23.1",
112112
"eslint": "^9.8.0",
113113
"genversion": "^3.2.0",
@@ -127,7 +127,7 @@
127127
"webpack": "^5.93.0"
128128
},
129129
"peerDependencies": {
130-
"cypress": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0"
130+
"cypress": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"
131131
},
132132
"engines": {
133133
"node": ">=18.0.0"

0 commit comments

Comments
 (0)