-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add system test for review verifications
This adds a system test for the review verifications journey to ensure that it works as expected.
- Loading branch information
1 parent
024cb7b
commit 7fdb4d7
Showing
5 changed files
with
157 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
.../support/autoload/page_objects/assessor_interface/review_professional_standing_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
module PageObjects | ||
module AssessorInterface | ||
class ReviewProfessionalStandingRequest < SitePrism::Page | ||
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \ | ||
"/professional-standing-request/review" | ||
|
||
section :form, "form" do | ||
section :yes_radio_item, | ||
PageObjects::GovukRadioItem, | ||
".govuk-radios__item:nth-of-type(1)" | ||
section :no_radio_item, | ||
PageObjects::GovukRadioItem, | ||
".govuk-radios__item:nth-of-type(2)" | ||
element :failure_reason_textarea, ".govuk-textarea" | ||
element :submit_button, ".govuk-button" | ||
end | ||
end | ||
end | ||
end |
17 changes: 17 additions & 0 deletions
17
spec/support/autoload/page_objects/assessor_interface/review_verifications.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
|
||
module PageObjects | ||
module AssessorInterface | ||
class ReviewVerifications < SitePrism::Page | ||
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \ | ||
"/review-verifications" | ||
|
||
sections :rows, ".govuk-table__row" do | ||
element :link, ".govuk-link" | ||
element :tag, ".govuk-tag" | ||
end | ||
|
||
element :back_to_overview_button, ".govuk-button" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters