Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 829 Bytes

File metadata and controls

33 lines (23 loc) · 829 Bytes

Running E2E tests

The dashboard uses Playwright for running E2E tests.

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.

Playwright-specific env variables to .env file

BASE_URL=
API_URL=

E2E_USER_NAME=
E2E_USER_PASSWORD=
E2E_PERMISSIONS_USERS_PASSWORD=

MAILPITURL=

You are ready to run Playwright commands like:

pnpm run e2e

Note that if you have changed BASE_URL to run tests on different environment you will need to clear login data which is stored locally in playwright/.auth folder:

pnpm run e2e:clean-auth