Skip to content

Commit 2523aef

Browse files
authoredMar 30, 2023
feat: e2e tests (#95)
* feat: e2e tests * style: format * fix: cleanup useless code * feat: e2e gh workflow * fix: gh * fix: lerna version * u * feat(e2epw): reusable test files * feat: verification tests * fix: recovery tests and cleanup * fix: ci runner * fix: chromatic runner * u * chore: refactor * fix: elements-test bundle * chore: refactor verification and recovery models * fix: element tests nextjs * chore: remove example tests from examples/react-spa * chore: documentation * chore: regenerate docs * chore: cleanup * fix: preact package.json * style: format * chore: update package-lock.json * chore: cleanup * chore: update docs
1 parent 2e6347a commit 2523aef

File tree

568 files changed

+229327
-90740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

568 files changed

+229327
-90740
lines changed
 

‎.github/workflows/playwright-e2e.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Playwright E2E Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
7+
jobs:
8+
test:
9+
timeout-minutes: 60
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: "18"
18+
- name: Install dependencies
19+
run: npm ci
20+
- name: Lerna initialize
21+
run: npm run initialize
22+
- name: Lerna build
23+
run: npm run build:clean
24+
- name: Install Playwright Browsers
25+
run: npx playwright install --with-deps
26+
- name: Install Ory CLI
27+
run: make .bin/ory
28+
- name: Run examples/react-spa tests
29+
run: cd examples/react-spa && npm run test
30+
- uses: actions/upload-artifact@v2
31+
if: always()
32+
with:
33+
name: react-spa playwright-report
34+
path: |
35+
examples/react-spa/playwright-report/
36+
examples/react-spa/test-results/
37+
retention-days: 7
38+
- name: Run examples/preact-spa tests
39+
run: cd examples/preact-spa && npm run test
40+
- uses: actions/upload-artifact@v2
41+
if: always()
42+
with:
43+
name: preact-spa playwright-report
44+
path: |
45+
examples/preact-spa/playwright-report/
46+
examples/preact-spa/test-results/
47+
retention-days: 7
48+
- name: Run examples/nextjs-spa tests
49+
run: cd examples/nextjs-spa && npm run test
50+
- uses: actions/upload-artifact@v2
51+
if: always()
52+
with:
53+
name: nextjs-spa playwright-report
54+
path: |
55+
examples/nextjs-spa/playwright-report/
56+
examples/nextjs-spa/test-results/
57+
retention-days: 7

‎.github/workflows/playwright.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
1315
- uses: actions/setup-node@v3
1416
with:
15-
node-version: "16"
17+
node-version: "18"
1618
- name: Install dependencies
1719
run: npm ci
1820
- name: Lerna initialize
@@ -28,4 +30,4 @@ jobs:
2830
with:
2931
name: playwright-report
3032
path: playwright-report/
31-
retention-days: 30
33+
retention-days: 7

0 commit comments

Comments
 (0)
Please sign in to comment.