From e07cb5e5f616134fde1cc33c2d321ddeac28076f Mon Sep 17 00:00:00 2001 From: elraphty Date: Thu, 16 May 2024 18:42:31 +0100 Subject: [PATCH] deleted JS file --- .../e2e/{06_phases.cy.ts => 05_phases.cy.ts} | 0 cypress/e2e/06_phases.cy.js | 116 ------------------ 2 files changed, 116 deletions(-) rename cypress/e2e/{06_phases.cy.ts => 05_phases.cy.ts} (100%) delete mode 100644 cypress/e2e/06_phases.cy.js diff --git a/cypress/e2e/06_phases.cy.ts b/cypress/e2e/05_phases.cy.ts similarity index 100% rename from cypress/e2e/06_phases.cy.ts rename to cypress/e2e/05_phases.cy.ts diff --git a/cypress/e2e/06_phases.cy.js b/cypress/e2e/06_phases.cy.js deleted file mode 100644 index d74b0bbf2..000000000 --- a/cypress/e2e/06_phases.cy.js +++ /dev/null @@ -1,116 +0,0 @@ -import { User, HostName, UserStories, Phases } from '../support/objects/objects'; - -describe('Create Phases for Feature', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - for(let i = 0; i <= 2; i++) { - cy.request({ - method: 'POST', - url: `${HostName}/features/phase`, - headers: { 'x-jwt': `${value}` }, - body: Phases[i] - }).its('body').then(body => { - expect(body).to.have.property('uuid').and.equal(Phases[i].uuid.trim()); - expect(body).to.have.property('feature_uuid').and.equal(Phases[i].feature_uuid.trim()); - expect(body).to.have.property('name').and.equal(Phases[i].name.trim()); - expect(body).to.have.property('priority').and.equal(Phases[i].priority); - }); - } - }) - }) -}) - -describe('Modify phases name', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - for(let i = 0; i <= 2; i++) { - cy.request({ - method: 'POST', - url: `${HostName}/features/phase`, - headers: { 'x-jwt': `${value}` }, - body: { - uuid: Phases[i].uuid, - name: Phases[i].name + "_addtext" - } - }).its('body').then(body => { - expect(body).to.have.property('uuid').and.equal(Phases[i].uuid.trim()); - expect(body).to.have.property('feature_uuid').and.equal(Phases[i].feature_uuid.trim()); - expect(body).to.have.property('name').and.equal(Phases[i].name.trim() + "_addtext"); - expect(body).to.have.property('priority').and.equal(Phases[i].priority); - }); - } - }) - }) -}) - -describe('Get phases for feature', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - cy.request({ - method: 'GET', - url: `${HostName}/features/${Phases[0].feature_uuid}/phase`, - headers: { 'x-jwt': `${ value }` }, - body: {} - }).then((resp) => { - expect(resp.status).to.eq(200) - for(let i = 0; i <= 2; i++) { - expect(resp.body[i]).to.have.property('uuid').and.equal(Phases[i].uuid.trim()); - expect(resp.body[i]).to.have.property('feature_uuid').and.equal(Phases[i].feature_uuid.trim()); - expect(resp.body[i]).to.have.property('name').and.equal(Phases[i].name.trim() + "_addtext"); - expect(resp.body[i]).to.have.property('priority').and.equal(Phases[i].priority); - } - }) - }) - }) -}) - -describe('Get phase by uuid', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - for(let i = 0; i <= 2; i++) { - cy.request({ - method: 'GET', - url: `${HostName}/features/${Phases[0].feature_uuid}/phase/${Phases[i].uuid}`, - headers: { 'x-jwt': `${ value }` }, - body: {} - }).then((resp) => { - expect(resp.status).to.eq(200) - expect(resp.body[i]).to.have.property('uuid').and.equal(Phases[i].uuid.trim()); - expect(resp.body[i]).to.have.property('feature_uuid').and.equal(Phases[i].feature_uuid.trim()); - expect(resp.body[i]).to.have.property('name').and.equal(Phases[i].name.trim() + "_addtext"); - expect(resp.body[i]).to.have.property('priority').and.equal(Phases[i].priority); - }) - } - }) - }) -}) - -describe('Delete phase by uuid', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - cy.request({ - method: 'DELETE', - url: `${HostName}/features/${Phases[0].feature_uuid}/phase/${Phases[0].uuid}`, - headers: { 'x-jwt': `${ value }` }, - body: {} - }).then((resp) => { - expect(resp.status).to.eq(200) - }) - }) - }) -}) - -describe('Check delete by uuid', () => { - it('passes', () => { - cy.upsertlogin(User).then(value => { - cy.request({ - method: 'GET', - url: `${HostName}/features/${Phases[0].feature_uuid}/phase/${Phases[0].uuid}`, - headers: { 'x-jwt': `${ value }` }, - body: {} - }).then((resp) => { - expect(resp.status).to.eq(404); - }) - }) - }) -})