feat: upload E2E test screenshots (#215)

This commit is contained in:
kimatata
2025-04-27 21:11:52 +09:00
committed by GitHub
parent 5a55e56387
commit 384bfbba60
4 changed files with 7 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ jobs:
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
if: always() if: always()
with: with:
name: playwright-report name: e2e-report
path: playwright-report/ path: |
retention-days: 30 playwright-report/
playwright-screenshots/

1
.gitignore vendored
View File

@@ -3,5 +3,6 @@ coverage/
.env .env
/test-results/ /test-results/
/playwright-report/ /playwright-report/
/playwright-screenshots/
/blob-report/ /blob-report/
/playwright/.cache/ /playwright/.cache/

View File

@@ -1,7 +1,7 @@
import { test, expect } from '@playwright/test'; import { test, expect } from '@playwright/test';
test('First User signup and create project', async ({ page }) => { 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 // Move to Sign up page
await page.goto('http://localhost:8000/en/account/signup'); await page.goto('http://localhost:8000/en/account/signup');

View File

@@ -94,7 +94,7 @@ export default function HeaderNavbarMenu({ messages, locale }: Props) {
<NavbarItem className="hidden md:block"> <NavbarItem className="hidden md:block">
<Chip size="sm" variant="flat"> <Chip size="sm" variant="flat">
<Link className="data-[active=true]:text-primary data-[active=true]:font-medium" href="/" locale={locale}> <Link className="data-[active=true]:text-primary data-[active=true]:font-medium" href="/" locale={locale}>
1.0.0-beta.10 1.0.0-beta.11
</Link> </Link>
</Chip> </Chip>
</NavbarItem> </NavbarItem>