1
0

fix(views): intercept request

This commit is contained in:
kolaente 2024-03-19 17:42:59 +01:00
parent d7b40f393e
commit 5b01710943
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -115,7 +115,7 @@ describe('Task', () => {
}) })
it('Should show a task description icon if the task has a description', () => { 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, { TaskFactory.create(1, {
description: 'Lorem Ipsum', description: 'Lorem Ipsum',
}) })
@ -128,7 +128,7 @@ describe('Task', () => {
}) })
it('Should not show a task description icon if the task has an empty description', () => { 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, { TaskFactory.create(1, {
description: '', 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', () => { 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, { TaskFactory.create(1, {
description: '<p></p>', description: '<p></p>',
}) })