Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: rename example env var (#29061)
Max Schmitt6a15d43539ea
diff --git a/docs/src/test-parameterize-js.md b/docs/src/test-parameterize-js.mdindex 19111d4eea..a2e7075f52 100644--- a/docs/src/test-parameterize-js.md+++ b/docs/src/test-parameterize-js.md@@ -156,7 +156,7 @@ For example, consider the following test file that needs a username and a passwo```js title="example.spec.ts"test(`example test`, async ({ page }) => {// ...- await page.getByLabel('User Name').fill(process.env.USERNAME);+ await page.getByLabel('User Name').fill(process.env.USER_NAME);await page.getByLabel('Password').fill(process.env.PASSWORD);});```@@ -164,17 +164,17 @@ test(`example test`, async ({ page }) => {You can run this test with your secret username and password set in the command line.```bash tab=bash-bash-USERNAME=me PASSWORD=secret npx playwright test+USER_NAME=me PASSWORD=secret npx playwright test``````batch tab=bash-batch-set USERNAME=me+set USER_NAME=meset PASSWORD=secretnpx playwright test``````powershell tab=bash-powershell-$env:USERNAME=me+$env:USER_NAME=me$env:PASSWORD=secretnpx playwright test```@@ -234,7 +234,7 @@ Now, you can just edit `.env` file to set any variables you'd like.```bash# .env fileSTAGING=0-USERNAME=me+USER_NAME=mePASSWORD=secret```