- NodeJS 21
- A running instance of Trustify
- Install dependencies:
npm ci
- Point the tests to a running instance of trustify:
export TRUSTIFY_URL=http://localhost:8080
- Run tests:
npx playwright test
- Or if you prefer to run the tests and see the Playwright UI use:
npm run test
Variable | Default Value | Description |
---|---|---|
TRUSTIFY_URL | http://localhost:8080 | The UI URL |
TRUSTIFY_AUTH_ENABLED | false | Whether or not auth is enabled in the UI |
There are come preconfigured commands you can use:
Variable | Description |
---|---|
npm run test | Execute tests |
npm run test:trace | Execute tests and take screenshots |
npm run test:host | Opens the Playwright UI in the browser of your OS |
You can also execute any playwright or playwright-bdd command directly in your terminal.