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:
parent
e98d839992
commit
d7b1d1c9ce
@ -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({
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user