Skip to content

Commit a0d691f

Browse files
authored
Create Playwright test harness (#14)
* added playwright tests and github actions * changed github action file * changed playwright config file because local host can't connect on github actions * removed commented test code * added a readme for tests * changed format of test readme file * updated with recommendations from Fran * updated github action to run on all branches
1 parent abdadb8 commit a0d691f

File tree

7 files changed

+18796
-47
lines changed

7 files changed

+18796
-47
lines changed

.github/workflows/playwright.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Playwright Tests
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request and nightly
6+
push:
7+
pull_request:
8+
schedule:
9+
# nightly
10+
- cron: '0 0 * * *'
11+
12+
jobs:
13+
playwright_tests:
14+
# Runs on an ubuntu runner
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
node-version: [14.x, 16.x, 18.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions/setup-node@v3
25+
- name: Install dependencies
26+
run: npm ci
27+
- name: Install Playwright
28+
run: npx playwright install --with-deps
29+
- name: Build production build
30+
run: npm run build
31+
- name: Run your tests
32+
run: npm run playwright_test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
/test-results/
25+
/playwright-report/
26+
/playwright/.cache/

0 commit comments

Comments
 (0)