This commit is contained in:
parent
fcef383183
commit
73a596e68d
2 changed files with 12 additions and 3 deletions
|
@ -28,8 +28,17 @@ jobs:
|
||||||
name: Lint code
|
name: Lint code
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
name: Build project
|
name: Build project
|
||||||
|
- name: Install Playwright browsers
|
||||||
|
run: npx playwright install --with-deps
|
||||||
- run: npm test
|
- run: npm test
|
||||||
name: Test project
|
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
|
- run: npm run build-storybook
|
||||||
name: Build storybook
|
name: Build storybook
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|
|
@ -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 page.goto('/');
|
||||||
await expect(page.locator('h1')).toBeVisible();
|
await expect(page.locator('h1')).toBeVisible();
|
||||||
});*/
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue