From ca626da9ed3e541bbab041930b89f2127098c30f Mon Sep 17 00:00:00 2001 From: Oliver Roberts Date: Tue, 29 Oct 2024 10:27:58 +0000 Subject: [PATCH] Remove `referred` project status option --- src/client/modules/Investments/Projects/constants.js | 1 - .../cypress/specs/DIT/investment-projects-spec.js | 2 +- .../cypress/specs/investments/edit-project-status-spec.js | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/modules/Investments/Projects/constants.js b/src/client/modules/Investments/Projects/constants.js index 39461bfdcdd..222c4af9cea 100644 --- a/src/client/modules/Investments/Projects/constants.js +++ b/src/client/modules/Investments/Projects/constants.js @@ -95,7 +95,6 @@ export const INVOLVEMENT_LEVEL_OPTIONS = [ export const PROJECT_STATUS_OPTIONS = [ { label: 'Ongoing', value: 'ongoing' }, { label: 'Delayed', value: 'delayed' }, - { label: 'Referred', value: 'referred' }, { label: 'Abandoned', value: 'abandoned' }, { label: 'Lost', value: 'lost' }, { label: 'Dormant', value: 'dormant' }, diff --git a/test/end-to-end/cypress/specs/DIT/investment-projects-spec.js b/test/end-to-end/cypress/specs/DIT/investment-projects-spec.js index 3142df6ecac..643159a53e6 100644 --- a/test/end-to-end/cypress/specs/DIT/investment-projects-spec.js +++ b/test/end-to-end/cypress/specs/DIT/investment-projects-spec.js @@ -338,7 +338,7 @@ describe('Creating an investment project', () => { cy.get('[data-test="field-status"]').then((element) => { assertFieldRadiosWithoutLabel({ element, - optionsCount: 6, + optionsCount: 5, value: 'Ongoing', }) }) diff --git a/test/functional/cypress/specs/investments/edit-project-status-spec.js b/test/functional/cypress/specs/investments/edit-project-status-spec.js index 297c7ede510..fc287b24e86 100644 --- a/test/functional/cypress/specs/investments/edit-project-status-spec.js +++ b/test/functional/cypress/specs/investments/edit-project-status-spec.js @@ -46,7 +46,7 @@ describe('EditProjectStatus', () => { assertFieldRadiosWithoutLabel({ element, value: 'Ongoing', - optionsCount: 6, + optionsCount: 5, }) }) }) @@ -64,10 +64,10 @@ describe('EditProjectStatus', () => { context('When selecting another radio button and pressing save', () => { it('should send the updated data and return to the details page with flash message', () => { - cy.get('[data-test="status-referred"]').click() + cy.get('[data-test="status-delayed"]').click() cy.get('[data-test="submit-button"]').click() cy.wait('@editStatusRequest').its('request.body').should('include', { - status: 'referred', + status: 'delayed', }) cy.url().should('contain', investments.projects.details(project.id)) cy.get('[data-test="status-message"]')