Skip to content

Commit

Permalink
Merge pull request #4388 from dfe-analytical-services/EES-4643
Browse files Browse the repository at this point in the history
EES-4643 fixing Prod UI test failures in 'general_public' suite
  • Loading branch information
N-moh committed Nov 2, 2023
2 parents c608b0e + a7de9d5 commit 9cc120c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
20 changes: 9 additions & 11 deletions tests/robot-tests/tests/general_public/glossary_page.robot
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,17 @@ Validate glossary accordion sections
user checks accordion is in position D 4
user checks accordion is in position Z 26

Search for Pupil referral unit
user verifies accordion is closed P

user enters text into element id:pageSearchForm-input Pupil referral unit
Search for Voluntary repayment
user verifies accordion is closed V
user enters text into element id:pageSearchForm-input Voluntary repayment
user waits until element contains id:pageSearchForm-resultsLabel Found 1 result
user clicks element id:pageSearchForm-option-0
user verifies accordion is open V

user verifies accordion is open P

${section}= user gets accordion section content element P
${section}= user gets accordion section content element V

user waits until parent contains element ${section} id:pupil-referral-unit
user checks element is visible id:pupil-referral-unit
user checks element should contain id:pupil-referral-unit Pupil referral unit (PRUs)
user waits until parent contains element ${section} id:voluntary-repayment
user checks element is visible id:voluntary-repayment
user checks element should contain id:voluntary-repayment Voluntary repayment
user checks element should contain ${section}
... An alternative education provision specifically organised to provide education for children who are not able to attend school and may not otherwise receive a suitable education.
... A borrower can at any time choose to repay some or all of their loan balance early, in addition to any repayments they are liable to make based on their income.
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ Sign up for email alerts
user clicks button Subscribe

# EES-1265
user waits until h1 is visible Subscribed %{WAIT_LONG}
user waits until page contains Subscribed %{WAIT_LONG}
user checks page contains Thank you. Check your email to confirm your subscription.
8 changes: 4 additions & 4 deletions tests/robot-tests/tests/general_public/permalink_prod_1.robot
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Validate table
user checks table cell contains 1 3 148,820

Validate footnotes
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="State-funded secondary schools include city technology colleges and all secondary academies, including all-through academies and free schools."]
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="x - 1 or 2 pupils, or a percentage based on 1 or 2."]
user checks page contains element testid:footnotes
user checks page contains
... State-funded secondary schools include city technology colleges and all secondary academies, including all-through academies and free schools.
user checks page contains x - 1 or 2 pupils, or a percentage based on 1 or 2.

Validate download files
user checks page contains Table in ODS format (spreadsheet, with title and footnotes)
Expand Down
7 changes: 3 additions & 4 deletions tests/robot-tests/tests/general_public/permalink_prod_2.robot
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ Validate table
user checks row cell contains text ${row} 3 7,916,225

Validate footnotes
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="Includes pupils who are sole or dual main registrations. Includes boarding pupils."]
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="x - 1 or 2 pupils, or a percentage based on 1 or 2."]
user checks page contains element testid:footnotes
user checks page contains Includes pupils who are sole or dual main registrations. Includes boarding pupils.
user checks page contains x - 1 or 2 pupils, or a percentage based on 1 or 2.

Validate download files
user checks page contains Table in ODS format (spreadsheet, with title and footnotes)
Expand Down
8 changes: 4 additions & 4 deletions tests/robot-tests/tests/general_public/permalink_prod_3.robot
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ Validate table
user checks row cell contains text ${row} 3 798

Validate footnotes
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="The number of fixed period exclusions expressed as a percentage of the number of pupils in January each year."]
user checks page contains element
... xpath://h3[text()="Footnotes"]/../ol/li[text()="x - 1 or 2 pupils, or a percentage based on 1 or 2."]
user checks page contains element testid:footnotes
user checks page contains
... The number of fixed period exclusions expressed as a percentage of the number of pupils in January each year.
user checks page contains x - 1 or 2 pupils, or a percentage based on 1 or 2.

Validate download files
user checks page contains Table in ODS format (spreadsheet, with title and footnotes)
Expand Down

0 comments on commit 9cc120c

Please sign in to comment.