Skip to content

Commit d70be2e

Browse files
committed
Add wait for URL to stabilize before extracting notification ID in unsubscribe flow test
Without this check, sometimes the id value is being set to `/check` which causes the test to fail
1 parent ba07ab8 commit d70be2e

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)