Skip to content

Commit

Permalink
changed tests according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
syed87 committed Nov 6, 2023
1 parent a87b81e commit d377a83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
title: "LoPS",
items: [
{
name: region_teaching_authority_name(@application_form.region),
name: (region_teaching_authority_name(@application_form.region) == "teaching authority") ? "Contact relevant competent authority" : region_teaching_authority_name(@application_form.region),
link: [:review, :assessor_interface, @application_form, @assessment, :professional_standing_request],
status: @professional_standing_request.review_status,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,19 @@ def when_i_click_on_back_to_overview
end

def and_i_see_the_lops_not_started
status_tag = assessor_application_page.task_list.not_started_status
expect(status_tag.text).to eq("NOT STARTED")
item =
assessor_review_verifications_page.task_list.find_item(
"Contact relevant competent authority",
)
expect(item.status_tag.text).to eq("NOT STARTED")
end

def and_i_see_the_lops_accepted
status_tag = assessor_application_page.task_list.accepted_status
expect(status_tag.text).to eq("ACCEPTED")
item =
assessor_review_verifications_page.task_list.find_item(
"Contact relevant competent authority",
)
expect(item.status_tag.text).to eq("ACCEPTED")
end

def application_form
Expand Down

0 comments on commit d377a83

Please sign in to comment.