From bc8b5da61da5da15c1aa2cb2ea107d8479a78f97 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 19 Mar 2024 15:23:36 +0100 Subject: [PATCH] fix(views): make overview cypress tests work again --- frontend/cypress/e2e/task/overview.spec.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/cypress/e2e/task/overview.spec.ts b/frontend/cypress/e2e/task/overview.spec.ts index 22a047545..ab10dc1b0 100644 --- a/frontend/cypress/e2e/task/overview.spec.ts +++ b/frontend/cypress/e2e/task/overview.spec.ts @@ -62,7 +62,7 @@ describe('Home Page Task Overview', () => { }) it('Should show a new task with a very soon due date at the top', () => { - const {tasks} = seedTasks() + const {tasks} = seedTasks(49) const newTaskTitle = 'New Task' cy.visit('/') @@ -73,9 +73,8 @@ describe('Home Page Task Overview', () => { due_date: new Date().toISOString(), }, false) - cy.visit(`/projects/${tasks[0].project_id}/list`) + cy.visit(`/projects/${tasks[0].project_id}/1`) cy.get('.tasks .task') - .first() .should('contain.text', newTaskTitle) cy.visit('/') cy.get('[data-cy="showTasks"] .card .task') @@ -90,7 +89,7 @@ describe('Home Page Task Overview', () => { cy.visit('/') - cy.visit(`/projects/${tasks[0].project_id}/list`) + cy.visit(`/projects/${tasks[0].project_id}/1`) cy.get('.task-add textarea') .type(newTaskTitle+'{enter}') cy.visit('/')