-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A few minor adjustments in scripts and docs
- Loading branch information
Showing
7 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,36 @@ | ||
|
||
# E2E Test Environment | ||
|
||
Pagy provides quite a few helpers that render the pagination elements for different js-frameworks on the client side. They are tested with the [Pagy Playground](https://ddnexus.github.io/pagy/playground/) apps and [Cypress](https://www.cypress.io). | ||
Pagy provides quite a few helpers that render the pagination elements for different js-frameworks on the client side. They are | ||
tested with the [Pagy Playground](https://ddnexus.github.io/pagy/playground/) apps and [Cypress](https://www.cypress.io). | ||
|
||
If you you need to run the E2E tests, here are two different ways to run them. | ||
|
||
## 1. Github Actions | ||
|
||
Just create a PR and all the ruby and e2e tests will run on GitHub. Usually this option is fine for simple PRs that pass the ruby tests. | ||
Just create a PR and all the ruby and e2e tests will run on GitHub. Usually this option is fine for simple PRs that pass the ruby | ||
tests. | ||
|
||
**Notice**: This option is not enabled by default in Github for new contributors, however after you create a PR it will get enabled ASAP. | ||
**Notice**: This option is not enabled by default in Github for new contributors, however after you create a PR it will get | ||
enabled ASAP. | ||
|
||
## 2. Run E2E Tests On Your System | ||
|
||
[Install Cypress](https://docs.cypress.io/guides/getting-started/installing-cypress) and then: | ||
Run `npm -i` or (`pnpm -i` if it is installed). | ||
|
||
You can sequentially run all the e2e tests with: | ||
|
||
```shell | ||
<local-pagy-dir>/e2e $ APP=demo npm run test | ||
# or run the test interactively | ||
<local-pagy-dir>/e2e $ APP=demo npm run test-open | ||
<local-pagy-dir>/e2e $ npm run test-all | ||
``` | ||
|
||
Notice: you can test also other `APP` from the playground. | ||
or limit the e2e test to a specific APP: | ||
|
||
```shell | ||
<local-pagy-dir>/e2e $ APP=demo PORT=8080 npm run test | ||
``` | ||
|
||
You can also run the e2e test interactively (on one APP/file at the time): | ||
|
||
```shell | ||
<local-pagy-dir>/e2e $ APP=demo PORT=8080 npm run test-open | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters