Skip to content

Commit

Permalink
Add playwright github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vyorkin committed Jan 27, 2025
1 parent 314e58a commit 4612e7b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30
1 change: 0 additions & 1 deletion e2e/onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ import { test, expect } from './test';
test('simplest', async ({ popupUrl, page }) => {
await page.goto(popupUrl);
await expect(page).toHaveTitle(/Zerion/);
await page.waitForTimeout(60_000);
});

0 comments on commit 4612e7b

Please sign in to comment.