Skip to content

Commit

Permalink
Merge pull request #7272 from uktrade/feature/CLS2-892-remove-referre…
Browse files Browse the repository at this point in the history
…d-project-status

Remove `referred` project status option
  • Loading branch information
oliverjwroberts authored Oct 29, 2024
2 parents 85f49c0 + ca626da commit 10f7fcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/client/modules/Investments/Projects/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('EditProjectStatus', () => {
assertFieldRadiosWithoutLabel({
element,
value: 'Ongoing',
optionsCount: 6,
optionsCount: 5,
})
})
})
Expand All @@ -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"]')
Expand Down

0 comments on commit 10f7fcc

Please sign in to comment.