starter-playwright
starter-playwright copied to clipboard
Boilerplate project for Web/API Test Automation created live on Twitch based on Playwright - TypeScript - Allure Report - Lighthouse
Updating hooks support # Description Create a separate hooks file Closes: #(issue) ## Type of change - [x] Bug fix (non-breaking change which fixes an issue). - [x] New feature...
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change....
# Example (overly simplified) login page HTML: ```html ``` ### `playwright.config.ts` ``` use: { screenshot: "only-on-failure", /* Maximum time each action such as `click()` can take. Defaults to 0 (no...
https://playwright.dev/docs/test-parameterize#passing-environment-variables ### For example: ``` import "dotenv/config"; ... async goto() { await this.page.goto(proccess.env.TESTS_URL); } ``` In my `.env` file I've configured the following: ``` TESTS_URL=http://localhost:3000 TESTS_BACKEND_API_URL=https://foo.bar ```