diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9be64b21cb..c416a38860 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,3 +82,7 @@ jobs: run: yarn playwright install --with-deps chromium - name: "E2E" run: yarn e2e:headless + - uses: actions/upload-artifact@v4 + with: + name: playwright + path: ./playwright-report diff --git a/e2e/apiMock.ts b/e2e/apiMock.ts index 1a63450516..dc8dfc6307 100644 --- a/e2e/apiMock.ts +++ b/e2e/apiMock.ts @@ -68,6 +68,7 @@ export const test = Ptest.extend({ updateMode: "full", url: regex, updateContent: "embed", + notFound: "fallback", }); await page.goto("/"); diff --git a/e2e/specs/authenticated/MyNDLAFolder.spec.ts b/e2e/specs/authenticated/MyNDLAFolder.spec.ts index 3be6f58073..747e66aac6 100644 --- a/e2e/specs/authenticated/MyNDLAFolder.spec.ts +++ b/e2e/specs/authenticated/MyNDLAFolder.spec.ts @@ -99,6 +99,7 @@ test("can drag and drop folders", async ({ page }) => { await secondItem.hover(); await page.mouse.down(); + await firstItem.hover(); await page.mouse.up(); diff --git a/package.json b/package.json index 0dc90e999d..cc8576cc66 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@ndla/types-backend": "^0.2.72", "@ndla/types-embed": "^4.1.6", "@ndla/types-taxonomy": "^1.0.22", - "@playwright/test": "^1.44.1", + "@playwright/test": "^1.43.1", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^15.0.2", "@types/express": "^4.17.21", diff --git a/playwright.config.ts b/playwright.config.ts index 605d489fbd..cbb8ffd9c0 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -26,7 +26,7 @@ export default defineConfig({ use: { /* Base URL to use in actions like `await page.goto('/')`. */ baseURL: "http://localhost:3000", - trace: "on-first-retry", + trace: "on", viewport: { width: 2560, height: 1440, diff --git a/yarn.lock b/yarn.lock index 8cb03ac90a..18d9dd4c91 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3609,7 +3609,7 @@ __metadata: languageName: node linkType: hard -"@playwright/test@npm:^1.44.1": +"@playwright/test@npm:^1.43.1": version: 1.44.1 resolution: "@playwright/test@npm:1.44.1" dependencies: @@ -10936,7 +10936,7 @@ __metadata: "@ndla/typography": "npm:^0.4.20" "@ndla/ui": "npm:^53.0.0" "@ndla/util": "npm:^4.0.4" - "@playwright/test": "npm:^1.44.1" + "@playwright/test": "npm:^1.43.1" "@testing-library/jest-dom": "npm:^6.4.2" "@testing-library/react": "npm:^15.0.2" "@types/express": "npm:^4.17.21"