Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/src/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ configurations for common CI providers.

1. **Run your tests**:
```bash js
npm test
npx playwright test
```
```bash python
pytest
Expand Down Expand Up @@ -66,7 +66,7 @@ steps:
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run your tests
run: npm test
run: npx playwright test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:e2e
run: npx playwright test
env:
# This might depend on your test-runner/language binding
PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
Expand Down Expand Up @@ -394,7 +394,7 @@ Sharding in Circle CI is indexed with 0 which means that you will need to overri
executor: pw-focal-development
parallelism: 4
steps:
- run: SHARD="$((${CIRCLE_NODE_INDEX}+1))"; npm run test -- --shard=${SHARD}/${CIRCLE_NODE_TOTAL}
- run: SHARD="$((${CIRCLE_NODE_INDEX}+1))"; npx playwright test -- --shard=${SHARD}/${CIRCLE_NODE_TOTAL}
```

### Jenkins
Expand All @@ -410,7 +410,7 @@ pipeline {
steps {
// Depends on your language / test framework
sh 'npm install'
sh 'npm run test'
sh 'npx playwright test'
}
}
}
Expand Down Expand Up @@ -524,7 +524,7 @@ configuration, against a hash of the Playwright version.
Playwright supports the `DEBUG` environment variable to output debug logs during execution. Setting it to `pw:browser*` is helpful while debugging `Error: Failed to launch browser` errors.

```bash js
DEBUG=pw:browser* npm run test
DEBUG=pw:browser* npx playwright test
```
```bash python
DEBUG=pw:browser* pytest
Expand Down
6 changes: 3 additions & 3 deletions docs/src/debug-selectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ Generates selector for the given element.
Playwright supports verbose logging with the `DEBUG` environment variable.

```bash tab=bash-bash lang=js
DEBUG=pw:api npm run test
DEBUG=pw:api npx playwright test
```

```batch tab=bash-batch lang=js
set DEBUG=pw:api
npm run test
npx playwright test
```

```powershell tab=bash-powershell lang=js
$env:DEBUG="pw:api"
npm run test
npx playwright test
```

```bash tab=bash-bash lang=java
Expand Down
12 changes: 6 additions & 6 deletions docs/src/debug.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ Set the `PWDEBUG` environment variable to run your scripts in debug mode. This
configures Playwright for debugging and opens the inspector.

```bash tab=bash-bash lang=js
PWDEBUG=1 npm run test
PWDEBUG=1 npx playwright test
```

```batch tab=bash-batch lang=js
set PWDEBUG=1
npm run test
npx playwright test
```

```powershell tab=bash-powershell lang=js
$env:PWDEBUG=1
npm run test
npx playwright test
```

```bash tab=bash-bash lang=java
Expand Down Expand Up @@ -108,17 +108,17 @@ Using `PWDEBUG=console` will configure the browser for debugging in Developer to
composite selectors.

```bash tab=bash-bash lang=js
PWDEBUG=console npm run test
PWDEBUG=console npx playwright test
```

```batch tab=bash-batch lang=js
set PWDEBUG=console
npm run test
npx playwright test
```

```powershell tab=bash-powershell lang=js
$env:PWDEBUG="console"
npm run test
npx playwright test
```

```bash tab=bash-bash lang=java
Expand Down