feat: upload E2E test screenshots (#215)
This commit is contained in:
7
.github/workflows/e2e.yml
vendored
7
.github/workflows/e2e.yml
vendored
@@ -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
1
.gitignore
vendored
@@ -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/
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user