https://github.com/ivanclay/playwright-express
PlayWright e2e test tool
https://github.com/ivanclay/playwright-express
Last synced: over 1 year ago
JSON representation
PlayWright e2e test tool
- Host: GitHub
- URL: https://github.com/ivanclay/playwright-express
- Owner: ivanclay
- Created: 2023-11-02T11:53:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-05T16:04:37.000Z (over 2 years ago)
- Last Synced: 2025-02-05T02:59:56.818Z (over 1 year ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# playwright-express
PlayWright e2e test tool
Inside that directory, you can run several commands:
## yarn playwright test
Runs the end-to-end tests.
## yarn playwright test --ui
Starts the interactive UI mode.
## yarn playwright test --project=chromium
Runs the tests only on Desktop Chrome.
## yarn playwright test example
Runs the tests in a specific file.
## yarn playwright test --debug
Runs the tests in debug mode.
## yarn playwright codegen
Auto generate tests with Codegen.
## We suggest that you begin by typing:
yarn playwright test
## And check out the following files:
- .\tests\example.spec.ts - Example end-to-end test
- .\tests-examples\demo-todo-app.spec.ts - Demo Todo App end-to-end tests
- .\playwright.config.ts - Playwright Test configuration
Visit https://playwright.dev/docs/intro for more information. ✨
## How do I prepare the web environment?
access `../apps/web` and run `yarn install` or `npm install`
## How do I prepare the api environment??
access `../apps/api` and run `yarn install` or `npm install`
## How do I run local database?
access `../apps/api` and run `yarn db:init` or `npm run db:init`
## How do I run web app?
access `../apps/web` and run `yarn dev` or `npm run dev`
## How do I run api app?
access `../apps/api` and run `yarn dev` or `npm run dev`
## How can I see the tests running?
yarn playwright test --headed
## How can I open PlayWright Inspector to debug?
yarn playwright test --debug