From e48a8d1717d5f4ffb38d7abac2d50b0c090c7ce2 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 1 Dec 2025 16:01:22 +0100 Subject: [PATCH] fix(test): replace project creation in history test with for loop This fixes a race condition when the project_views table was locked. For example https://github.com/go-vikunja/vikunja/actions/runs/19826720209/job/56802103014 --- frontend/tests/e2e/project/project-history.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/tests/e2e/project/project-history.spec.ts b/frontend/tests/e2e/project/project-history.spec.ts index 37d2918a3..d051879b8 100644 --- a/frontend/tests/e2e/project/project-history.spec.ts +++ b/frontend/tests/e2e/project/project-history.spec.ts @@ -7,10 +7,12 @@ test.describe('Project History', () => { test.setTimeout(60000) const projects = await ProjectFactory.create(7) await ProjectViewFactory.truncate() - await Promise.all(projects.map(p => ProjectViewFactory.create(1, { - id: p.id, - project_id: p.id, - }, false))) + for (const p of projects) { + await ProjectViewFactory.create(1, { + id: p.id, + project_id: p.id, + }, false) + } const loadProjectArrayPromise = page.waitForResponse('**/api/v1/projects*') await page.goto('/')