diff --git a/app/components/Analyst/StatusInformationModal.tsx b/app/components/Analyst/StatusInformationModal.tsx index 5d5ea4d9ab..335c1dfa8b 100644 --- a/app/components/Analyst/StatusInformationModal.tsx +++ b/app/components/Analyst/StatusInformationModal.tsx @@ -75,7 +75,7 @@ const StatusInformationModal: React.FC = ({ { expect(screen.getByText('Approved')).toBeInTheDocument(); expect(screen.getByText('Assessment')).toBeInTheDocument(); expect(screen.getByText('Cancelled')).toBeInTheDocument(); - expect(screen.getByText('Closed')).toBeInTheDocument(); + expect(screen.getByText('Not selected')).toBeInTheDocument(); expect(screen.getByText('Reporting complete')).toBeInTheDocument(); expect(screen.getByText('Conditionally approved')).toBeInTheDocument(); expect(screen.getByText('On hold')).toBeInTheDocument(); @@ -250,7 +250,7 @@ describe('The application header component', () => { expect(screen.getByText('Approved')).toBeInTheDocument(); expect(screen.getByText('Cancelled')).toBeInTheDocument(); - expect(screen.getByText('Closed')).toBeInTheDocument(); + expect(screen.getByText('Not selected')).toBeInTheDocument(); expect(screen.getByText('Reporting complete')).toBeInTheDocument(); expect(screen.getByText('Conditionally approved')).toBeInTheDocument(); expect(screen.getByText('On hold')).toBeInTheDocument(); diff --git a/app/tests/pages/analyst/dashboard.test.tsx b/app/tests/pages/analyst/dashboard.test.tsx index 92fb9e5597..f1189ce9b8 100644 --- a/app/tests/pages/analyst/dashboard.test.tsx +++ b/app/tests/pages/analyst/dashboard.test.tsx @@ -338,7 +338,7 @@ describe('The index page', () => { pageTestingHelper.renderPage(); const internalStatus = screen.getByText('Received'); - const externalStatus = screen.getAllByText('Closed')[0]; + const externalStatus = screen.getAllByText('Not selected')[0]; expect(internalStatus).toBeInTheDocument(); expect(externalStatus).toBeInTheDocument(); diff --git a/app/tests/utils/mockStatusTypes.ts b/app/tests/utils/mockStatusTypes.ts index 026ed169be..c6ac0957b7 100644 --- a/app/tests/utils/mockStatusTypes.ts +++ b/app/tests/utils/mockStatusTypes.ts @@ -17,7 +17,7 @@ const allApplicationStatusTypes = { }, { name: 'closed', - description: 'Closed', + description: 'Not selected', id: 'WyJhcHBsaWNhdGlvbl9zdGF0dXNfdHlwZXMiLCJjbG9zZWQiXQ==', }, { diff --git a/db/deploy/tables/application_status_type_010_closed_to_not_selected.sql b/db/deploy/tables/application_status_type_010_closed_to_not_selected.sql new file mode 100644 index 0000000000..f80154afb3 --- /dev/null +++ b/db/deploy/tables/application_status_type_010_closed_to_not_selected.sql @@ -0,0 +1,7 @@ +-- deploy ccbc:tables/application_status_type_010_closed_to_not_selected to pg + +begin; + +update ccbc_public.application_status_type set description = 'Not selected' where name = 'closed'; + +commit; diff --git a/db/revert/tables/application_status_type_010_closed_to_not_selected.sql b/db/revert/tables/application_status_type_010_closed_to_not_selected.sql new file mode 100644 index 0000000000..ba6b3bae32 --- /dev/null +++ b/db/revert/tables/application_status_type_010_closed_to_not_selected.sql @@ -0,0 +1,9 @@ +-- revert ccbc:tables/application_status_type_010_closed_to_not_selected from pg +BEGIN; +UPDATE + ccbc_public.application_status_type +SET + description = 'Closed' +WHERE + name = 'closed'; +COMMIT; diff --git a/db/sqitch.plan b/db/sqitch.plan index 80b3e6dae4..ad130c2386 100644 --- a/db/sqitch.plan +++ b/db/sqitch.plan @@ -556,3 +556,4 @@ tables/notification 2024-04-18T19:54:33Z ,,, # add email no mutations/create_email_notifications 2024-04-21T02:42:44Z ,,, # add create email notifications mutation clean_application_status 2024-04-24T23:07:28Z Rafael Solorzano <61289255+rafasdc@users.noreply.github.com> # cleans application status table by setting archived_at to ones that are missing it @1.158.0 2024-05-02T15:58:28Z CCBC Service Account # release v1.158.0 +tables/application_status_type_010_closed_to_not_selected 2024-05-01T15:54:58Z Anthony Bushara # Change the description of closed to not selected