From b87790a9846b425634c9b5746a1bcc145f52aa0b Mon Sep 17 00:00:00 2001 From: terry feng Date: Tue, 11 Jun 2024 11:39:09 -0700 Subject: [PATCH] update playwright CI to only test on chromium --- .github/workflows/playwright.yml | 4 +++- src/tests/playwright/version.spec.ts | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 467190be6..01342f087 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -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: diff --git a/src/tests/playwright/version.spec.ts b/src/tests/playwright/version.spec.ts index 8eb7b1d36..719c362ee 100644 --- a/src/tests/playwright/version.spec.ts +++ b/src/tests/playwright/version.spec.ts @@ -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);