Skip to content

Commit

Permalink
update playwright CI to only test on chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
terryzfeng committed Jun 11, 2024
1 parent d6696b5 commit b87790a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
# run: npx playwright test
# Only test on Chromium
run: npx playwright test --project=chromium
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
5 changes: 5 additions & 0 deletions src/tests/playwright/version.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { test, expect } from '@playwright/test';

test('Browser version', async ({ browser }) => {
test.info().annotations.push({
type: 'browser version',
description: browser.version(),
});

const version = await browser.version();
console.log('Browser version:', version);
expect(version).not.toBe(null);
Expand Down

0 comments on commit b87790a

Please sign in to comment.