From d7b1d1c9ce4fbcc2a59fee5baaabf24aeaaa380c Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Thu, 27 Apr 2023 10:49:55 +0200 Subject: [PATCH] fix: Updated cypress API usage to stop using deprecated API (#3636) --- frontend/cypress/integration/projects/overview.spec.ts | 4 ++-- frontend/cypress/support/API.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/integration/projects/overview.spec.ts b/frontend/cypress/integration/projects/overview.spec.ts index 126542288f..1435e85e02 100644 --- a/frontend/cypress/integration/projects/overview.spec.ts +++ b/frontend/cypress/integration/projects/overview.spec.ts @@ -23,12 +23,12 @@ describe('project overview', () => { after(() => { cy.request({ method: 'DELETE', - url: `${baseUrl}/api/admin/features/${featureToggleName}-A`, + url: `${baseUrl}/api/admin/projects/default/features/${featureToggleName}-A`, failOnStatusCode: false, }); cy.request({ method: 'DELETE', - url: `${baseUrl}/api/admin/features/${featureToggleName}-B`, + url: `${baseUrl}/api/admin/projects/default/features/${featureToggleName}-B`, failOnStatusCode: false, }); cy.request({ diff --git a/frontend/cypress/support/API.ts b/frontend/cypress/support/API.ts index cde08909f7..d0dde3d2f4 100644 --- a/frontend/cypress/support/API.ts +++ b/frontend/cypress/support/API.ts @@ -24,7 +24,7 @@ export const createFeature_API = ( export const deleteFeature_API = (name: string): Chainable => { cy.request({ method: 'DELETE', - url: `${baseUrl}/api/admin/features/${name}`, + url: `${baseUrl}/api/admin/projects/default/features/${name}`, }); return cy.request({ method: 'DELETE',