Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new visual testing for the web-new package #561

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/visual-ci-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Web-New Visual Testing Pipeline

on:
pull_request:
paths-ignore:
- "**.md"
- "**.png"
- "**.drawio"
- "**.xlsx"

jobs:
setup-and-visual-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Use lerna
run: npm install -g [email protected]

- name: Bootstrap
run: lerna bootstrap --no-ci

- name: Visual Tests
timeout-minutes: 30
run: |
cd ./packages/web-new
npm install
npx playwright install chromium firefox
npm run build
npm test

- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./packages/web-new/playwright-report/
retention-days: 30
2 changes: 2 additions & 0 deletions packages/web-new/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ module.exports = defineConfig({
webServer: {
command: 'npm run serve',
url: 'http://127.0.0.1:5100',
// Add a timeout in case the server takes to long to start
// timeout: 60 * 1000,
reuseExistingServer: !process.env.CI,
},
});
Loading
Loading