Skip to content

Commit 313e174

Browse files
Merge pull request #561 from elsassph/feat/playwright
Add Playwright browser tests
2 parents 4ad1f1e + 01a4710 commit 313e174

20 files changed

+4217
-92
lines changed

.github/workflows/playwright.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Playwright Tests
2+
3+
on:
4+
push:
5+
branches: [ dev, master ]
6+
pull_request:
7+
branches: [ dev, master ]
8+
9+
jobs:
10+
test:
11+
timeout-minutes: 60
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: lts/*
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Install Playwright Browsers
24+
run: npx playwright install --with-deps
25+
26+
- name: Build
27+
run: npm run build
28+
29+
- name: Run Playwright tests
30+
run: npx playwright test
31+
32+
- uses: actions/upload-artifact@v4
33+
if: ${{ !cancelled() }}
34+
with:
35+
name: playwright-report
36+
path: playwright-report/
37+
retention-days: 30

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ dist
4949
/typedocs
5050

5151
# ES5 version of the Lightning Inspector
52-
/devtools/lightning-inspect.es5.js
52+
/devtools/lightning-inspect.es5.js
53+
54+
# Playwright
55+
/test-results/
56+
/playwright-report/
57+
/blob-report/
58+
/playwright/.cache/

0 commit comments

Comments
 (0)