entretien/e2e
2026-05-30 12:15:04 -05:00
..
pages Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
custom-expects.ts Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
package.json Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
playwright.config.ts Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
pnpm-lock.yaml Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
README.md Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
static Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00
Taskfile Initial commit; adaptation from mascarpone 2026-05-30 12:15:04 -05:00

e2e

Install deps with corepack pnpm i.

Ensure that if you update @playwright/test that (a) it remains a devdep, and (b) it is a =-type dependency.

Start a dev server with cargo run. Tests expect an ephemeral user with username and password both test. Achieve this with

cargo run set-password test

then

sqlite3 users.db "update users set ephemeral=true where username='test'"

Run tests in the docker image with the right browsers installed with ./Taskfile playwright:local or ./Taskfile playwright:ui.