Skip to content

Commit 9a49123

Browse files
Copilotk3nsei
andcommitted
Fix CI failures: Update workflow for Playwright and resolve snapshot test issues
Co-authored-by: k3nsei <190422+k3nsei@users.noreply.github.com>
1 parent c6b4bc9 commit 9a49123

File tree

7 files changed

+10
-3837
lines changed

7 files changed

+10
-3837
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,15 @@ jobs:
9595
name: artifacts-${{ matrix.project }}
9696
path: dist/${{ matrix.project }}
9797

98-
- name: Run cypress
99-
uses: cypress-io/github-action@v5
100-
with:
101-
project: projects/${{ matrix.project }}-e2e
102-
browser: chrome
103-
headless: true
98+
- name: Install Playwright browsers
99+
run: npx playwright install --with-deps
104100

105-
- name: Upload failed screenshots
106-
uses: actions/upload-artifact@v4
107-
if: failure()
108-
with:
109-
name: failed-e2e-${{ matrix.project }}-screenshots
110-
path: projects/${{ matrix.project }}-e2e/artifacts/screenshots
101+
- name: Run Playwright tests
102+
run: npm run e2e
111103

112-
- name: Upload failed videos
104+
- name: Upload Playwright test results
113105
uses: actions/upload-artifact@v4
114106
if: failure()
115107
with:
116-
name: failed-e2e-${{ matrix.project }}-videos
117-
path: projects/${{ matrix.project }}-e2e/artifacts/videos
108+
name: failed-e2e-${{ matrix.project }}-test-results
109+
path: test-results/

0 commit comments

Comments
 (0)