Skip to content

Commit

Permalink
fix: Updated cypress API usage to stop using deprecated API (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Kolstad committed Apr 27, 2023
1 parent e98d839 commit d7b1d1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/cypress/integration/projects/overview.spec.ts
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/support/API.ts
Expand Up @@ -24,7 +24,7 @@ export const createFeature_API = (
export const deleteFeature_API = (name: string): Chainable<any> => {
cy.request({
method: 'DELETE',
url: `${baseUrl}/api/admin/features/${name}`,
url: `${baseUrl}/api/admin/projects/default/features/${name}`,
});
return cy.request({
method: 'DELETE',
Expand Down

0 comments on commit d7b1d1c

Please sign in to comment.