diff --git a/frontend/tests/e2e/task/overview.spec.ts b/frontend/tests/e2e/task/overview.spec.ts index a27177f43..47bcc1295 100644 --- a/frontend/tests/e2e/task/overview.spec.ts +++ b/frontend/tests/e2e/task/overview.spec.ts @@ -157,6 +157,11 @@ test.describe('Home Page Task Overview', () => { }) test('Should show the cta buttons for new project when there are no tasks', async ({authenticatedPage: page}) => { + // Need a project so that ShowTasks renders (which sets tasksLoaded=true), + // but no tasks so the ImportHint becomes visible. + const project = (await ProjectFactory.create())[0] + await createDefaultViews(project.id) + await page.goto('/') await expect(page.locator('.home.app-content .content')).toContainText('Import your projects and tasks from other services into Vikunja:')