This commit is contained in:
parent
cd4096b2ff
commit
a0afb6dfd3
24 changed files with 536 additions and 274 deletions
22
e2e/README.md
Normal file
22
e2e/README.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# 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`.
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue