-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QA] Update running tests description (#4875)
* update running tests description * Update changeset
- Loading branch information
Showing
2 changed files
with
22 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
Update description of how to run e2e tests |
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,25 +1,27 @@ | ||
# Running E2E tests | ||
|
||
Add Cypress-specific env variables to `.env` file (created in the configuration section above): | ||
Cypress tests work until version 3.18. From version 3.19 we moved the tests to PW. | ||
|
||
``` | ||
CYPRESS_USER_NAME= | ||
CYPRESS_USER_PASSWORD= | ||
CYPRESS_SECOND_USER_NAME= | ||
CYPRESS_PERMISSIONS_USERS_PASSWORD= | ||
> [!NOTE] | ||
> The tests are based on Saleor Cloud and use snapshots with prepared data. | ||
> If you want to run those tests on your infrastructure you should update test data with your own created objects | ||
https://github.com/saleor/saleor-dashboard/blob/main/playwright/data/e2eTestData.ts and make sure to create snapshot. | ||
|
||
CYPRESS_mailHogUrl= | ||
STRIPE_SECRET_KEY= | ||
STRIPE_PUBLIC_KEY= | ||
Playwright-specific env variables to `.env` file | ||
|
||
// not required | ||
CYPRESS_RECORD_KEY= // if you want your local runs recorded | ||
``` | ||
BASE_URL= | ||
API_URL= | ||
E2E_USER_NAME= | ||
E2E_USER_PASSWORD= | ||
E2E_PERMISSIONS_USERS_PASSWORD= | ||
For values of those variables, refer to our internal documentation. | ||
MAILPITURL= | ||
``` | ||
|
||
You are ready to run Cypress commands like: | ||
You are ready to run PW commands like: | ||
|
||
```shell | ||
npm run cy:open | ||
``` | ||
npm run qa:pw-ui | ||
``` |