Skip to content

Commit b62e316

Browse files
committed
Fix typo and steps for Playwright instructions
1 parent 371432e commit b62e316

File tree

1 file changed

+5
-2
lines changed
  • src/app/reference/test-runners/playwright/github-actions

1 file changed

+5
-2
lines changed

src/app/reference/test-runners/playwright/github-actions/page.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: GitHub actions
44

55
Playwright tests can be configured via `playwright.config.ts` and the [command line](https://playwright.dev/docs/test-cli).
66

7-
In real world scenarios, the `playwright.config.ts` has the defualt setup and is extended by the command line options in either the terminal, `package.json` or github action.
7+
In real world scenarios, the `playwright.config.ts` has the default setup and is extended by the command line options in either the terminal, `package.json` or github action.
88

99
## Simple setup
1010

@@ -46,16 +46,19 @@ jobs:
4646
steps:
4747
- name: Checkout
4848
uses: actions/checkout@v4
49+
# If you're using Yarn or PNPM, use the appropriate install command here
4950
- name: Install dependencies
5051
run: npm ci
5152
- name: Install Replay Chromium
5253
run: npx replayio install
5354
- name: Run Playwright tests
54-
run: npx playwright test
55+
run: npx playwright test --project replay-chromium
5556
env:
5657
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}
5758
```
5859
60+
Finally, add the workspace API key you were given to the Github repo settings as `REPLAY_API_KEY`, so that the CI job uploads to the right workspace.
61+
5962
## Advanced setup
6063

6164
In most setups, you'll want to to have additional control. In these cases, it's common to want to split up the test run and upload steps.

0 commit comments

Comments
 (0)