1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: Updated cypress API usage to stop using deprecated API (#3636)

This commit is contained in:
Christopher Kolstad 2023-04-27 10:49:55 +02:00 committed by GitHub
parent e98d839992
commit d7b1d1c9ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -23,12 +23,12 @@ describe('project overview', () => {
after(() => { after(() => {
cy.request({ cy.request({
method: 'DELETE', method: 'DELETE',
url: `${baseUrl}/api/admin/features/${featureToggleName}-A`, url: `${baseUrl}/api/admin/projects/default/features/${featureToggleName}-A`,
failOnStatusCode: false, failOnStatusCode: false,
}); });
cy.request({ cy.request({
method: 'DELETE', method: 'DELETE',
url: `${baseUrl}/api/admin/features/${featureToggleName}-B`, url: `${baseUrl}/api/admin/projects/default/features/${featureToggleName}-B`,
failOnStatusCode: false, failOnStatusCode: false,
}); });
cy.request({ cy.request({

View File

@ -24,7 +24,7 @@ export const createFeature_API = (
export const deleteFeature_API = (name: string): Chainable<any> => { export const deleteFeature_API = (name: string): Chainable<any> => {
cy.request({ cy.request({
method: 'DELETE', method: 'DELETE',
url: `${baseUrl}/api/admin/features/${name}`, url: `${baseUrl}/api/admin/projects/default/features/${name}`,
}); });
return cy.request({ return cy.request({
method: 'DELETE', method: 'DELETE',