From b65d05ec3d362d21ad484454bda671868afd1f55 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 19 Mar 2024 14:43:52 +0100 Subject: [PATCH] fix(views): make table view cypress tests work again --- frontend/cypress/e2e/project/project-view-table.spec.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/project/project-view-table.spec.ts b/frontend/cypress/e2e/project/project-view-table.spec.ts index d468e61c2..6319617c1 100644 --- a/frontend/cypress/e2e/project/project-view-table.spec.ts +++ b/frontend/cypress/e2e/project/project-view-table.spec.ts @@ -1,13 +1,15 @@ import {createFakeUserAndLogin} from '../../support/authenticateUser' import {TaskFactory} from '../../factories/task' +import {prepareProjects} from './prepareProjects' describe('Project View Table', () => { createFakeUserAndLogin() + prepareProjects() it('Should show a table with tasks', () => { const tasks = TaskFactory.create(1) - cy.visit('/projects/1/table') + cy.visit('/projects/1/3') cy.get('.project-table table.table') .should('exist') @@ -17,7 +19,7 @@ describe('Project View Table', () => { it('Should have working column switches', () => { TaskFactory.create(1) - cy.visit('/projects/1/table') + cy.visit('/projects/1/3') cy.get('.project-table .filter-container .items .button') .contains('Columns') @@ -42,7 +44,7 @@ describe('Project View Table', () => { id: '{increment}', project_id: 1, }) - cy.visit('/projects/1/table') + cy.visit('/projects/1/3') cy.get('.project-table table.table') .contains(tasks[0].title)