diff --git a/app/view_objects/assessor_interface/qualification_requests_view_object.rb b/app/view_objects/assessor_interface/qualification_requests_view_object.rb index d197a9da33..a2a19cf34d 100644 --- a/app/view_objects/assessor_interface/qualification_requests_view_object.rb +++ b/app/view_objects/assessor_interface/qualification_requests_view_object.rb @@ -200,9 +200,9 @@ def signed_consent_method_task_items(qualification_request) link: "#", status: if qualification_request.consent_received? - "completed" + "received" elsif qualification_request.consent_requested? - "not_started" + "waiting_on" else "cannot_start" end, diff --git a/spec/system/assessor_interface/verifying_qualifications_spec.rb b/spec/system/assessor_interface/verifying_qualifications_spec.rb index 7ec93c4c75..ac0552bdf2 100644 --- a/spec/system/assessor_interface/verifying_qualifications_spec.rb +++ b/spec/system/assessor_interface/verifying_qualifications_spec.rb @@ -56,6 +56,7 @@ when_i_send_the_signed_consent_documents then_i_see_the(:assessor_qualification_requests_page, reference:) and_the_send_consent_document_to_applicant_task_is_completed + and_the_record_applicant_response_task_is_waiting_on when_i_go_back_to_overview then_i_see_the(:assessor_application_page, reference:) @@ -163,6 +164,12 @@ def and_the_send_consent_document_to_applicant_task_is_completed ) end + def and_the_record_applicant_response_task_is_waiting_on + expect(record_applicant_response_task_item.status_tag.text).to eq( + "WAITING ON", + ) + end + def when_i_go_back_to_overview assessor_qualification_requests_page.continue_button.click end @@ -197,6 +204,12 @@ def send_consent_document_to_applicant_task_item ) end + def record_applicant_response_task_item + assessor_qualification_requests_page.task_lists.third.find_item( + "Record applicant response", + ) + end + def application_form @application_form ||= create(