Skip to content

Commit

Permalink
Merge pull request #4344 from dfe-analytical-services/EES-4537
Browse files Browse the repository at this point in the history
EES-4531 -UI tests to cover EES-4531 bug
  • Loading branch information
N-moh authored Oct 9, 2023
2 parents fbe8fdf + a47cf46 commit 332eb6e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/robot-tests/tests/admin/bau/adopt_methodology.robot
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Test Setup fail test fast if required
*** Variables ***
${OWNING_PUBLICATION_NAME}= UI tests - methodology owning publication %{RUN_IDENTIFIER}
${ADOPTING_PUBLICATION_NAME}= UI tests - adopting methodology publication %{RUN_IDENTIFIER}
${OWNING_PUBLICATION_NAME_2}= UI tests - publication with unpublished methodology %{RUN_IDENTIFIER}
${RELEASE_NAME}= Calendar year 2000


Expand All @@ -31,6 +32,12 @@ Create owning publication methodology and publish
user approves methodology for publication ${OWNING_PUBLICATION_NAME} ${OWNING_PUBLICATION_NAME}
user creates methodology amendment for publication ${OWNING_PUBLICATION_NAME} ${OWNING_PUBLICATION_NAME}

Create another owing publication with an unpublished methodology
[Documentation] EES-4531
user creates test publication via api ${OWNING_PUBLICATION_NAME_2}
user creates methodology for publication ${OWNING_PUBLICATION_NAME_2}
user checks page contains tag Draft

Create adopting publication
${adopting_publication_id}= user creates test publication via api ${ADOPTING_PUBLICATION_NAME}
user creates test release via api ${adopting_publication_id} CY 2000
Expand All @@ -40,13 +47,14 @@ Create adopting publication
user adds headlines text block
user adds content to headlines text block Headline text block text

Adopt a Methodology
Check that an unpublished methodology cannot be adopted
user navigates to methodologies on publication page ${ADOPTING_PUBLICATION_NAME}

user waits until page contains link Adopt an existing methodology
user clicks link Adopt an existing methodology
user waits until h2 is visible Adopt a methodology
user checks page does not contain ${OWNING_PUBLICATION_NAME_2}

Adopt a published Methodology
user clicks radio ${OWNING_PUBLICATION_NAME}
user opens details dropdown More details css:[data-testid="Radio item for ${OWNING_PUBLICATION_NAME}"]
${selected_methodology_details}= user gets details content element More details
Expand Down

0 comments on commit 332eb6e

Please sign in to comment.