Skip to content

Commit

Permalink
html-report
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Dec 12, 2024
1 parent d4027ef commit 6a3638c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ jobs:
node-version: '21'

- name: install playwright and run tests
run: |
run: |
npm install -g yarn && yarn
yarn playwright install --with-deps
yarn playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 7
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: process.env.CI ? 'list' : 'html',
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down
1 change: 1 addition & 0 deletions tests/perusteestaAmmatillinenPutki.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ test.describe('Uusi peruste ja perusteesta ammatillinen', async () => {
await page.getByRole('button', { name: 'Sisällön kieli' }).click();
await page.getByRole('menuitem', { name: 'Svenska' }).click();
await page.getByRole('button', { name: 'Muokkaa' }).click();
await waitSmall(page);
await page.getByRole('group', { name: 'Tutkinnon osan nimi' }).getByRole('textbox').fill('Testiosa sv');
await page.getByRole('button', { name: 'Tallenna' }).click();
await expect(page.locator('body')).toContainText('Tallennus onnistui');
Expand Down

0 comments on commit 6a3638c

Please sign in to comment.