Skip to content

Commit 9261c32

Browse files
docs: update README integration test instructions
Replace the removed `npm run e2e` script and outdated Nightwatch/Selenium (JDK 7+) references with the current Cypress-based commands: `cy:ci` for the full headless suite, `cy:dev` for the interactive runner, and how to run a single spec. Fixes #10915
1 parent 81a9057 commit 9261c32

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,17 @@ Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false`
8989

9090
##### Integration Tests
9191

92-
You will need JDK of version 7 or higher as instructed here
93-
https://nightwatchjs.org/guide/getting-started/installation.html#install-selenium-server
92+
End-to-end tests use [Cypress](https://www.cypress.io/). Run the full suite locally with `npm run cy:ci`, which starts the required servers, runs Cypress headless, and shuts the servers down afterwards - be sure you aren't running a dev server on the same ports when testing!
9493

95-
Integration tests can be run locally with `npm run e2e` - be sure you aren't running a dev server when testing!
94+
To debug or run individual specs interactively, use `npm run cy:dev` to open the Cypress runner.
95+
96+
To run a single spec headless, start the servers in one terminal and run that spec in another:
97+
98+
```sh
99+
npm run cy:start
100+
# in a second terminal:
101+
npm run cy:run -- --spec "test/e2e-cypress/e2e/features/deep-linking.cy.js"
102+
```
96103

97104
### Browser support
98105
Swagger UI works in the latest versions of Chrome, Safari, Firefox, and Edge.

0 commit comments

Comments
 (0)