Skip to content

Commit

Permalink
[QA] Update running tests description (#4875)
Browse files Browse the repository at this point in the history
* update running tests description

* Update changeset
  • Loading branch information
szczecha authored and Cloud11PL committed Jun 19, 2024
1 parent 209b999 commit 1153bf4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-ducks-leave.md
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
32 changes: 17 additions & 15 deletions docs/running-tests.md
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
```

0 comments on commit 1153bf4

Please sign in to comment.