diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 192c117..0a923b5 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -28,8 +28,17 @@ jobs: name: Lint code - run: npm run build name: Build project + - name: Install Playwright browsers + run: npx playwright install --with-deps - run: npm test name: Test project + - uses: actions/upload-artifact@v4 + name: Upload Playwright report + if: ${{ !cancelled() }} + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 - run: npm run build-storybook name: Build storybook - uses: actions/upload-artifact@v4 diff --git a/e2e/demo.test.ts b/e2e/demo.test.ts index 79b551c..b82f897 100644 --- a/e2e/demo.test.ts +++ b/e2e/demo.test.ts @@ -1,6 +1,6 @@ -//import { expect, test } from '@playwright/test'; +import { expect, test } from '@playwright/test'; -/*test('home page has expected h1', async ({ page }) => { +test('home page', async ({ page }) => { await page.goto('/'); await expect(page.locator('h1')).toBeVisible(); -});*/ +});