From 384bfbba60f4695ac8959f5386860d2ff16dd5df Mon Sep 17 00:00:00 2001 From: kimatata <117462761+kimatata@users.noreply.github.com> Date: Sun, 27 Apr 2025 21:11:52 +0900 Subject: [PATCH] feat: upload E2E test screenshots (#215) --- .github/workflows/e2e.yml | 7 ++++--- .gitignore | 1 + e2e/first-user-signup.spec.ts | 2 +- frontend/src/app/[locale]/HeaderNavbarMenu.tsx | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 72e800b..449e040 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -37,6 +37,7 @@ jobs: - uses: actions/upload-artifact@v4 if: always() with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + name: e2e-report + path: | + playwright-report/ + playwright-screenshots/ diff --git a/.gitignore b/.gitignore index b040304..872c5fa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ coverage/ .env /test-results/ /playwright-report/ +/playwright-screenshots/ /blob-report/ /playwright/.cache/ diff --git a/e2e/first-user-signup.spec.ts b/e2e/first-user-signup.spec.ts index 7bcac6f..ef1958a 100644 --- a/e2e/first-user-signup.spec.ts +++ b/e2e/first-user-signup.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; test('First User signup and create project', async ({ page }) => { - const screenshotDir = 'playwright-report/screenshots/first-user-signup'; + const screenshotDir = 'playwright-screenshots/first-user-signup'; // Move to Sign up page await page.goto('http://localhost:8000/en/account/signup'); diff --git a/frontend/src/app/[locale]/HeaderNavbarMenu.tsx b/frontend/src/app/[locale]/HeaderNavbarMenu.tsx index 4b82596..40e7bb2 100644 --- a/frontend/src/app/[locale]/HeaderNavbarMenu.tsx +++ b/frontend/src/app/[locale]/HeaderNavbarMenu.tsx @@ -94,7 +94,7 @@ export default function HeaderNavbarMenu({ messages, locale }: Props) { - 1.0.0-beta.10 + 1.0.0-beta.11