https://github.com/thunder/ddev-playwright
https://github.com/thunder/ddev-playwright
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thunder/ddev-playwright
- Owner: thunder
- License: apache-2.0
- Created: 2024-06-26T08:48:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-27T08:07:03.000Z (10 months ago)
- Last Synced: 2025-01-06T16:14:17.969Z (4 months ago)
- Language: Shell
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DDEV Playwright
DDEV Playwright is a DDEV addon that provides a simple way to run Playwright tests in your DDEV project.
## Getting started
```bash
# Install the ddev addon
ddev get thunder/ddev-playwright
# Install playwright at tests/Playwright
ddev install-playwright
# Restart ddev
ddev restart
# Run the tests
ddev playwright test
# Run the tests in UI mode
ddev playwright test --ui
# Show the latest report
ddev playwright show-report
```### Access ddev website in tests
Add the following code to your playwright.config.js file:
```javascript
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL
}
```## Codegen
The codegen command is not supported yet. You can use [Playwright CRX](https://github.com/ruifigueira/playwright-crx) chrome extension instead.