Skip to content

Commit b07964d

Browse files
authored
Merge pull request #613 from alphagov/fix-unsubscribe-request-flow
Add wait for URL to stabilize before extracting notification ID in unsubscribe flow test
2 parents ba07ab8 + d70be2e commit b07964d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/notifications/functional_tests/test_unsubscribe_requests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def test_unsubscribe_request_flow(request, driver, login_seeded_user, client_liv
4646

4747
# Extract the generated unsubscribe link
4848
dashboard_page.click_continue()
49+
dashboard_page.wait_until_url_doesnt_contain("/notification/check")
4950
notification_id = dashboard_page.get_notification_id()
51+
5052
# wait til its in sending/delivered/etc to make sure fields are populated that unsubscribe report expects
5153
one_off_email_data = retry_call(
5254
get_notification_by_id_via_api,

0 commit comments

Comments
 (0)