Skip to content

Commit

Permalink
Use IDs to identify the thirdparty callback date and time selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMillar-MOJ committed Mar 11, 2025
1 parent 5099801 commit aba0512
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/functional_tests/contact/test_confirmation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,8 @@ def test_thirdparty_callback(page: Page):
page.get_by_label("Relationship to you").select_option("family_friend")
page.get_by_role("textbox", name="Phone number").fill("12345")
page.get_by_role("radio", name="Call on another day").check()
page.get_by_role("group", name="Select a time for us to call").get_by_label(
"Day", exact=True
).select_option(index=1)
page.get_by_role("group", name="Select a time for us to call").get_by_label(
"Time"
).select_option(index=1)
page.locator("#thirdparty_call_another_day").select_option(index=1)
page.locator("#thirdparty_call_another_time").select_option(index=1)
page.get_by_role("button", name="Submit details").click()
expect(
page.get_by_text(
Expand Down

0 comments on commit aba0512

Please sign in to comment.