Skip to content

Commit

Permalink
Merge pull request #1765 from DFE-Digital/application-id
Browse files Browse the repository at this point in the history
Remove references to application_id
  • Loading branch information
thomasleese authored Oct 16, 2023
2 parents 83dccbe + 97b245e commit 2cfcc05
Show file tree
Hide file tree
Showing 59 changed files with 210 additions and 251 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class AgeRangeSubjectsAssessmentRecommendationAward < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/award/age-range-subjects"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class Application < SitePrism::Page
set_url "/assessor/applications/{application_id}"
set_url "/assessor/applications/{application_form_id}"

element :back_link, "a", text: "Back"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class ApplicationStatus < SitePrism::Page
set_url "/assessor/applications/{application_id}/status"
set_url "/assessor/applications/{application_form_id}/status"

element :back_link, "a", text: "Back"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class AssessmentSection < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

element :heading, "h1"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class AssignAssessor < SitePrism::Page
set_url "/assessor/applications/{application_id}/assign-assessor"
set_url "/assessor/applications/{application_form_id}/assign-assessor"

element :heading, "h1"
sections :assessors, PageObjects::GovukRadioItem, ".govuk-radios__item"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class AssignReviewer < SitePrism::Page
set_url "/assessor/applications/{application_id}/assign-reviewer"
set_url "/assessor/applications/{application_form_id}/assign-reviewer"

element :heading, "h1"
sections :reviewers, PageObjects::GovukRadioItem, ".govuk-radios__item"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class EnglishLanguageProficiencyCard < SitePrism::Section
end

class CheckEnglishLanguageProficiency < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, EnglishLanguageProficiencyCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PersonalInformationCard < SitePrism::Section
end

class CheckPersonalInformation < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, PersonalInformationCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ProfessionalStandingCard < SitePrism::Section
end

class CheckProfessionalStanding < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, ProfessionalStandingCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class QualificationCard < SitePrism::Section
end

class CheckQualifications < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, QualificationCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class WorkHistoryCard < GovukSummaryCard
end

class CheckWorkHistory < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, WorkHistoryCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class CompleteAssessment < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/edit"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/edit"

element :heading, "h1"
sections :new_states, GovukRadioItem, ".govuk-radios__item"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class ConfirmAssessmentRecommendation < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/{recommendation}/confirm"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class ContactProfessionalStandingAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/contact-professional-standing"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class CreateNote < SitePrism::Page
set_url "/assessor/applications/{application_id}/notes/new"
set_url "/assessor/applications/{application_form_id}/notes/new"

element :heading, "h1"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class DeclareAssessmentRecommendation < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/{recommendation}/edit"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class EditAgeRangeSubjectsAssessmentRecommendationAward < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/award/age-range-subjects/edit"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class EditQualificationRequest < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/qualification-requests/{id}/edit"

section :form, "form" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class EditReferenceRequest < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/reference-requests/{id}/edit"

section :summary_list, GovukSummaryList, "#reference-details-summary-list"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class EmailConsentLettersAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/email-consent-letters"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class FurtherInformationRequest < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/further-information-requests/{further_information_request_id}"
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module PageObjects
module AssessorInterface
class FurtherInformationRequestPreview < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/further-information-requests/new"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/further-information-requests/new"

element :email_preview, "div.app-email-preview"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class PreviewAssessmentRecommendation < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/{recommendation}/preview"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class PreviewRefereeAssessmentRecommendationAward < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/preview-referee"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class PreviewTeacherAssessmentRecommendationAward < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/preview-teacher"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class QualificationRequests < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/qualification-requests"

section :task_list, ".app-task-list__item" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class QualificationRequestsAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/qualification-requests"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class ReferenceRequests < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/reference-requests"

section :task_list, ".app-task-list__item" do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class ReferenceRequestsAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/reference-requests"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module PageObjects
module AssessorInterface
class RequestFurtherInformation < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/further-information-requests/preview"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/further-information-requests/preview"

sections :items, ".app-further-information-request-item" do
element :heading, ".govuk-heading-s"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class ReviewFurtherInformationRequest < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/further-information-requests/{further_information_request_id}/edit"

element :heading, ".govuk-heading-xl"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module AssessorInterface
class Timeline < SitePrism::Page
set_url "/assessor/applications/{application_id}/timeline_events"
set_url "/assessor/applications/{application_form_id}/timeline_events"

element :heading, "h1"
sections :timeline_items, MojTimelineItem, ".moj-timeline__item"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class AgeRangeSubjectCard < SitePrism::Section
end

class VerifyAgeRangeSubjectsPage < AssessmentSection
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}/sections/{section_id}"
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}/sections/{section_id}"

sections :cards, AgeRangeSubjectCard, ".govuk-summary-card"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class VerifyProfessionalStandingAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/verify-professional-standing"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module AssessorInterface
class VerifyQualificationsAssessmentRecommendationVerify < SitePrism::Page
set_url "/assessor/applications/{application_id}/assessments/{assessment_id}" \
set_url "/assessor/applications/{application_form_id}/assessments/{assessment_id}" \
"/recommendation/verify/verify-qualifications"

element :heading, "h1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageObjects
module TeacherInterface
class CheckUploadedFiles < SitePrism::Page
set_url "/teacher/application/documents/{application_id}/edit"
set_url "/teacher/application/documents/{application_form_id}/edit"

element :heading, "h1"
element :files, ".govuk-grid-row .govuk-grid-column-two-thirds"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module PageObjects
module TeacherInterface
class DocumentAvailable < SitePrism::Page
set_url "/teacher/application/documents/{application_id}/edit"
set_url "/teacher/application/documents/{application_form_id}/edit"

element :heading, "h1"

Expand Down
10 changes: 5 additions & 5 deletions spec/support/page_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def assessor_contact_professional_standing_assessment_recommendation_verify_page
PageObjects::AssessorInterface::ContactProfessionalStandingAssessmentRecommendationVerify.new
end

def assessor_create_note_page
@assessor_create_note_page ||=
PageObjects::AssessorInterface::CreateNote.new
end

def assessor_declare_assessment_recommendation_page
@assessor_declare_assessment_recommendation_page ||=
PageObjects::AssessorInterface::DeclareAssessmentRecommendation.new
Expand Down Expand Up @@ -201,11 +206,6 @@ def assessor_review_verifications_page
PageObjects::AssessorInterface::ReviewVerifications.new
end

def assessor_qualified_for_subject_page
@assessor_qualified_for_subject_page ||=
PageObjects::AssessorInterface::CreateNote.new
end

def assessor_timeline_page
@assessor_timeline_page ||= PageObjects::AssessorInterface::Timeline.new
end
Expand Down
Loading

0 comments on commit 2cfcc05

Please sign in to comment.