Skip to content

Latest commit

 

History

History

README.md

Defguard end-to-end tests powered by Playwright

Prerequisites

  • Docker with compose plugin
  • Node
  • pnpm

How to run

If needed, specifiy image tag by setting IMAGE_TAG variable:

export IMAGE_TAG=release-1.5-alpha

Pull Docker images:

docker compose --file ../docker-compose.e2e.yaml pull

Install packages:

pnpm install

Install Playwright with Chromium driver:

npx playwright install --with-deps chromium

or

pnpm playwright install --with-deps chromium

Run tests:

pnpm test

Run tests with the browser on screen, and stopping on failure:

pnpm test --headed --max-failures 1