Skip to content

Commit

Permalink
New visual testing for the web-new package
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Feb 12, 2024
1 parent 4b75403 commit 0489450
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 302 deletions.
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

0 comments on commit 0489450

Please sign in to comment.