Skip to content

Commit

Permalink
use playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Sep 16, 2024
1 parent f3bdcfe commit 31bab0b
Show file tree
Hide file tree
Showing 4 changed files with 1,446 additions and 216 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,11 @@ jobs:
node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install
- name: Get installed Playwright version
id: playwright-version
run: echo "version=$(cat node_modules/playwright/package.json | jq -r .version)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- run: npm run e2e
3 changes: 2 additions & 1 deletion e2e/03-browser/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default defineConfig({
reporters: process.env['GITHUB_ACTIONS'] ? ['default', 'github-actions'] : 'default',
browser: {
enabled: true,
name: 'chrome',
provider: 'playwright',
name: 'chromium',
headless: true,
},
},
Expand Down
Loading

0 comments on commit 31bab0b

Please sign in to comment.