From 19ac348bc85a7ff2557c4cf06678a43a08027899 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sat, 17 Jan 2026 22:13:14 +0800 Subject: [PATCH] Add Playwright report artifacts to CI and enable manual trigger - Upload playwright-report and test-results artifacts after e2e tests - Add workflow_dispatch for manual workflow triggering - Temporarily enable always-on traces/videos/screenshots for testing - Fix ESM imports in playwright.config.mts --- .github/workflows/tests.yml | 1 + playwright.config.mts | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c8380e6..efb275d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,7 @@ name: Tests on: + workflow_dispatch: # Manual trigger for testing push: branches: - '**' diff --git a/playwright.config.mts b/playwright.config.mts index b9e143b..70d0efe 100644 --- a/playwright.config.mts +++ b/playwright.config.mts @@ -22,8 +22,9 @@ export default defineConfig({ timeout: 10000, }, use: { - trace: 'on-first-retry', - video: 'on-first-retry', + trace: 'on', // TODO: revert to 'on-first-retry' after verifying GitHub Actions report + video: 'on', // TODO: revert to 'on-first-retry' after verifying GitHub Actions report + screenshot: 'on', // TODO: remove after verifying GitHub Actions report }, projects: [ {