From 5b017109439050ff85f5c1261f2f949ede568707 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 19 Mar 2024 17:42:59 +0100 Subject: [PATCH] fix(views): intercept request --- frontend/cypress/e2e/task/task.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/task/task.spec.ts b/frontend/cypress/e2e/task/task.spec.ts index a7eb57869..768f3d61c 100644 --- a/frontend/cypress/e2e/task/task.spec.ts +++ b/frontend/cypress/e2e/task/task.spec.ts @@ -115,7 +115,7 @@ describe('Task', () => { }) it('Should show a task description icon if the task has a description', () => { - cy.intercept(Cypress.env('API_URL') + '/projects/1/tasks**').as('loadTasks') + cy.intercept(Cypress.env('API_URL') + '/projects/1/views/*/tasks**').as('loadTasks') TaskFactory.create(1, { description: 'Lorem Ipsum', }) @@ -128,7 +128,7 @@ describe('Task', () => { }) it('Should not show a task description icon if the task has an empty description', () => { - cy.intercept(Cypress.env('API_URL') + '/projects/1/tasks**').as('loadTasks') + cy.intercept(Cypress.env('API_URL') + '/projects/1/views/*/tasks**').as('loadTasks') TaskFactory.create(1, { description: '', }) @@ -141,7 +141,7 @@ describe('Task', () => { }) it('Should not show a task description icon if the task has a description containing only an empty p tag', () => { - cy.intercept(Cypress.env('API_URL') + '/projects/1/tasks**').as('loadTasks') + cy.intercept(Cypress.env('API_URL') + '/projects/1/views/*/tasks**').as('loadTasks') TaskFactory.create(1, { description: '

', })