Skip to content

Commit 19ec58c

Browse files
test(playwright): add Playwright as test runner
* add playwright test runner + polyfill element internals * install playwright dependencies * install playwright deps for all build scripts * get aria-current from attribute to fix tests in firefox * await input element after pristine is set * allow validation messages from components has does not have pristine implemented * testing story * remove duplicate story * add story for form controls with native form element * Update package-lock.json Co-authored-by: Niels Lyngsø <[email protected]>
1 parent d635fdd commit 19ec58c

File tree

15 files changed

+4076
-13868
lines changed

15 files changed

+4076
-13868
lines changed

.github/workflows/azure-static-web-apps-delightful-beach-055ecb503.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
cache: 'npm'
3232
- run: npm install
3333
- run: npm run lint
34+
- run: sudo npx playwright install-deps
3435
- run: npm run test
3536
- run: npm run build:prod
3637

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
name: Publish
22

33
on:
4-
push:
4+
push:
55
branches:
66
- main
77

88
jobs:
99
build:
1010
# The type of runner that the job will run on
1111
runs-on: ubuntu-latest
12-
12+
1313
strategy:
1414
matrix:
1515
node-version: [16.x]
1616

1717
# Steps represent a sequence of tasks that will be executed as part of the job
1818
steps:
19-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2020
- uses: actions/checkout@v2
2121
with:
22-
# pulls all commits (needed for lerna / semantic release to correctly version)
23-
fetch-depth: "0"
24-
25-
22+
# pulls all commits (needed for lerna / semantic release to correctly version)
23+
fetch-depth: '0'
24+
2625
- name: Use Node.js ${{ matrix.node-version }}
2726
uses: actions/setup-node@v2
2827
with:
@@ -31,6 +30,7 @@ jobs:
3130
- run: npm -v
3231
- run: npm ci
3332

33+
- run: sudo npx playwright install-deps
3434
- run: npm run test
3535

3636
- name: Authenticate with Registry
@@ -46,4 +46,3 @@ jobs:
4646
run: npm run lerna:publish
4747
env:
4848
NPM_TOKEN: ${{ secrets.UMBRACO_PUBLISH_NPM_TOKEN}}
49-

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ jobs:
3333
cache: 'npm'
3434
- run: npm install
3535
- run: npm run lint
36+
- run: sudo npx playwright install-deps
3637
- run: npm run test
3738
- run: npm run build:prod

0 commit comments

Comments
 (0)