From 8206cc87675c0b96746efc0e65e7edf070740fc1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 19 Mar 2024 14:38:52 +0100 Subject: [PATCH] fix(views): make list cypress tests work again --- frontend/cypress/e2e/project/project-view-list.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/cypress/e2e/project/project-view-list.spec.ts b/frontend/cypress/e2e/project/project-view-list.spec.ts index c325f6824..eef7484ac 100644 --- a/frontend/cypress/e2e/project/project-view-list.spec.ts +++ b/frontend/cypress/e2e/project/project-view-list.spec.ts @@ -13,7 +13,7 @@ describe('Project View Project', () => { it('Should be an empty project', () => { cy.visit('/projects/1') cy.url() - .should('contain', '/projects/1/list') + .should('contain', '/projects/1/1') cy.get('.project-title') .should('contain', 'First Project') cy.get('.project-title-dropdown') @@ -38,7 +38,7 @@ describe('Project View Project', () => { id: '{increment}', project_id: 1, }) - cy.visit('/projects/1/list') + cy.visit('/projects/1/1') cy.get('.tasks .task .tasktext') .contains(tasks[0].title) @@ -88,10 +88,10 @@ describe('Project View Project', () => { title: i => `task${i}`, project_id: 1, }) - cy.visit('/projects/1/list') + cy.visit('/projects/1/1') cy.get('.tasks') - .should('contain', tasks[1].title) + .should('contain', tasks[20].title) cy.get('.tasks') .should('not.contain', tasks[99].title) @@ -104,6 +104,6 @@ describe('Project View Project', () => { cy.get('.tasks') .should('contain', tasks[99].title) cy.get('.tasks') - .should('not.contain', tasks[1].title) + .should('not.contain', tasks[20].title) }) }) \ No newline at end of file