From f658d3bbba9c086b1e1b77d4f6c0b253f31ca601 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Thu, 5 Jan 2023 13:34:40 +0000 Subject: [PATCH] fix(cypress): use env for API_URL (#2925) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2925 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- cypress/e2e/list/list-view-gantt.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cypress/e2e/list/list-view-gantt.spec.ts b/cypress/e2e/list/list-view-gantt.spec.ts index b5dc8fa08..177f791ad 100644 --- a/cypress/e2e/list/list-view-gantt.spec.ts +++ b/cypress/e2e/list/list-view-gantt.spec.ts @@ -62,8 +62,7 @@ describe('List View Gantt', () => { }) it('Drags a task around', () => { - cy.intercept('**/api/v1/tasks/*') - .as('taskUpdate') + cy.intercept(Cypress.env('API_URL') + '/tasks/*').as('taskUpdate') const now = new Date() TaskFactory.create(1, {