Skip to content

Commit

Permalink
Merge branch 'feature-add-features-to-workspaces-modify-delete' into …
Browse files Browse the repository at this point in the history
…feature-add-feature-to-workspaces-modify-delete
  • Loading branch information
MahtabBukhari authored May 16, 2024
2 parents 1c54cf0 + 88b4d2a commit c0143bd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cypress/e2e/03_features.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('Get Feature by uuid', () => {
for(let i = 0; i <= 2; i++) {
cy.request({
method: 'GET',
url: `${HostName}/features/` + Features[i].uuid,
url: `${HostName}/features/`+ Features[i].uuid,
headers: { 'x-jwt': `${ value }` },
body: {}
}).then((resp) => {
Expand All @@ -163,9 +163,9 @@ describe('Delete Feature by uuid', () => {
cy.upsertlogin(User).then(value => {
cy.request({
method: 'DELETE',
url: `${HostName}/features/${Features[2].uuid}`,
url: `${HostName}/features/${Features[0].uuid}`,
headers: { 'x-jwt': `${ value }` },
body: {}
body: {}
}).then((resp) => {
expect(resp.status).to.eq(200)
})
Expand All @@ -177,14 +177,12 @@ describe('Check delete by uuid', () => {
it('passes', () => {
cy.upsertlogin(User).then(value => {
cy.request({
method: 'DELETE',
url: `${HostName}/features/${Features[2].uuid}`,
method: 'GET',
url: `${HostName}/features/${Features[0].uuid}`,
headers: { 'x-jwt': `${ value }` },
body: {},
failOnStatusCode: false
body: {}
}).then((resp) => {
expect(resp.status).to.eq(404);
})
})
})
})

0 comments on commit c0143bd

Please sign in to comment.