Skip to content

Playwright - nightly visual regression #104

Playwright - nightly visual regression

Playwright - nightly visual regression #104

name: Playwright - nightly visual regression
on:
schedule:
- cron: '0 2 * * *' # Runs every day at 2:00 AM UTC
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Ensure visual.spec.ts-snapshots directory exists
run: mkdir -p tests/visual.spec.ts-snapshots
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install Playwright dependencies
run: npm install --no-save @playwright/test playwright
- name: Install Playwright Browsers
run: npx playwright install chromium firefox webkit --with-deps
- name: Run Playwright tests in all browsers
run: npx playwright test --project=chromium --project=firefox --project=webkit
- name: Upload all visual regression screenshots
uses: actions/upload-artifact@v4
with:
name: visual-regression-screenshots
path: test-results/visual-Visual-regression-*/
if-no-files-found: warn