Add npm scripts to update prisma, run lowdefy, run e2e
Context for reviewers
Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified.
This PR configures the staff portal to be able to run Playwright for e2e tests. When you run npm run e2e, it will call playwright.config.ts's webServer command, which looks like this:
Copy the prisma schema and migrations from the participant folder into the staff folder (I tried symlinks but symlinks outside the docker context break docker builds)
Build and run the docker containers
Force a prisma reset
Tell Playwright to wait for port 3033 (the lowdefy_dev container) to be ready
Testing
Screenshots, GIF demos, code examples or output to help show the changes working as expected. ProTip: you can drag and drop or paste images into this textbox.
Ticket
https://wicmtdp.atlassian.net/browse/PRP-181
Changes
Context for reviewers
This PR configures the staff portal to be able to run Playwright for e2e tests. When you run
npm run e2e
, it will call playwright.config.ts's webServer command, which looks like this:This is configured to:
Testing
Run
npm run e2e