Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenotron/playwright-template
Template with Prisma tested with Playwright in Github Actions
https://github.com/kenotron/playwright-template
Last synced: 10 days ago
JSON representation
Template with Prisma tested with Playwright in Github Actions
- Host: GitHub
- URL: https://github.com/kenotron/playwright-template
- Owner: kenotron
- Created: 2023-10-18T03:34:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T05:17:30.000Z (about 1 year ago)
- Last Synced: 2024-11-07T21:11:54.426Z (2 months ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# minimal playwright template
This repo uses the following:
- pnpm
- Playwright
- Prisma
- ts-node
- swc## Playwright details
Github actions are configured with the postgres database as a container service exposed to the port 5432. Playwright is configured to run inside the Github runners with a minimized parallelization since those free runners are quite low in core count.
The example here uses the Playwright concept of fixtures to setup and tear down the db. An improvement is work on making this to allow a different schema per test or per Playwright worker.
Playwright allows certain test "projects" to depend on each other. Auth here in this example depends on the database.
## Prisma
Note there is a difference between seeding normally vs in a test. Something more sophisticated can be made here so seeding can even be per test / suite.