Skip to content

Commit a818d80

Browse files
authored
Merge pull request #113 from replayio/filip/dev-386-add-playwright-tests-for-our-docs
add basic playwright setup
2 parents a032d5f + 9907fcf commit a818d80

10 files changed

+423
-54
lines changed

.github/workflows/playwright.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Playwright Tests
2+
on: [deployment_status]
3+
jobs:
4+
test:
5+
if: github.event.deployment_status.state == 'success'
6+
timeout-minutes: 60
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: lts/*
13+
- name: Install dependencies
14+
run: npm ci
15+
- name: Install Playwright Browsers
16+
run: npx playwright install --with-deps
17+
- name: Run Playwright tests
18+
run: npx playwright test
19+
env:
20+
BASE_URL: ${{ github.event.deployment_status.target_url }}
21+
REPLAY_API_KEY: ${{ secrets.REPLAY_API_KEY }}
22+
REPLAY_PLAYWRIGHT_FIXTURE: 1

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ public/_next-video
5050

5151
.env
5252
out
53+
/test-results/
54+
/playwright-report/
55+
/blob-report/
56+
/playwright/.cache/

0 commit comments

Comments
 (0)