Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1021 Bytes

E2E-TESTING.md

File metadata and controls

37 lines (21 loc) · 1021 Bytes

End to end tests

Install playwright

after running pnpm install

cd into packages/e2e-tests

and run npx playwright install --with-deps

A convenient alternative to install and use playwright is the VSCode plugin. It also provides some functionality for running or recording tests.

Usage

This package depends on the target-browser so make sure you prepared that to run (adding custom certificates). See README

But don't run the browser at the same time, it will be started inside the test routine.

pnpm -w e2e

for headless usage

or

pnpm -w e2e --ui

for UI mode

If you omit the project parameter the tests will be executed in all configured browsers (Chrome, chromium, and Firefox at the moment)

The account dir for tests is in packages/e2e-tests/data/accounts

It can be deleted after running tests and will be recreated in the next run.