Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cypress] ESM docu update II #43731

Merged
merged 5 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions tests/System/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ npm run cypress:run

You can execute single test specs, e.g. to run the installation step only.
```
npm run cypress:run --spec tests/System/integration/install/Installation.cy.js
npx cypress run --spec tests/System/integration/install/Installation.cy.js
```

You can run multiple test specs separated by commas and use patterns. For example, to execute all the tests from the
administrator, site, api and plugins specs without the installation step:
You can run multiple test specs separated by commas and use patterns.
For example, to run all tests without the installation step:
```
npm run cypress:run --spec 'tests/System/integration/{administrator,site,api,plugins}/**/*.cy.js'
npx cypress run --spec 'tests/System/integration/{administrator,site,api,plugins}/**/*.cy.js'
```

> [!NOTE]
Expand Down Expand Up @@ -293,7 +293,7 @@ sudo npm run cypress:run

If the `root` user does not have a Cypress installation, you can use the Cypress installation cache of the current user:
```
sudo CYPRESS_CACHE_FOLDER=$HOME/.cache/Cypress npm run cypress:run
CYPRESS_CACHE_FOLDER=$HOME/.cache/Cypress sudo npm run cypress:run
```


Expand All @@ -310,6 +310,8 @@ If the used SMTP server port is already in use you will see an error like:

:point_right: Configure a different, unused port in the `cypress.config.mjs` file as `smtp_port`.

:point_right: If you use `npx` instead of `npm`, you may see `Your configFile threw an error from: cypress.config.js`,
but you still need to configure `cypress.config.mjs` file.

### Timeout Error on Slow Machines

Expand Down