@@ -19,7 +19,7 @@ def access_list_page_via_prescription_id(context):
1919 # Navigate directly to the results page with a prescription ID parameter
2020 context .page .goto (
2121 context .cpts_ui_base_url
22- + "site/prescription-results ?prescriptionId=C0C757-A83008-C2D93O"
22+ + "site/prescription-list ?prescriptionId=C0C757-A83008-C2D93O"
2323 )
2424
2525 # Verify we're on the prescription list page using data-testid
@@ -31,7 +31,7 @@ def access_list_page_via_prescription_id(context):
3131def access_list_page_via_nhs_number (context ):
3232 # Navigate directly to the results page with an NHS number parameter
3333 context .page .goto (
34- context .cpts_ui_base_url + "site/prescription-results ?nhsNumber=123456"
34+ context .cpts_ui_base_url + "site/prescription-list ?nhsNumber=123456"
3535 )
3636
3737 # Verify we're on the prescription list page using data-testid
@@ -43,13 +43,13 @@ def access_list_page_via_nhs_number(context):
4343 'I am redirected to the prescription list page with prescription ID "{prescription_id}"'
4444)
4545def verify_prescription_list_page (context , prescription_id ):
46- # Wait until the URL includes prescription-results
47- context .page .wait_for_url (lambda url : "site/prescription-results " in url )
46+ # Wait until the URL includes prescription-list
47+ context .page .wait_for_url (lambda url : "site/prescription-list " in url )
4848
4949 current_url = context .page .url
5050 assert (
51- "site/prescription-results " in current_url
52- ), f"Expected URL to contain 'site/prescription-results ', got: { current_url } "
51+ "site/prescription-list " in current_url
52+ ), f"Expected URL to contain 'site/prescription-list ', got: { current_url } "
5353 assert (
5454 "prescriptionId=" in current_url
5555 ), f"Expected URL to contain 'prescriptionId=', got: { current_url } "
@@ -93,8 +93,8 @@ def verify_redirect_to_prescription_id_tab(context):
9393 # Use more relaxed URL checking
9494 current_url = context .page .url
9595 assert (
96- "site/search" in current_url
97- ), f"Expected URL to contain 'site/search', got: { current_url } "
96+ "site/search-by-prescription-id " in current_url
97+ ), f"Expected URL to contain 'site/search-by-prescription-id ', got: { current_url } "
9898
9999 # Use the POM to verify we're on the Prescription ID search tab
100100 search_page = SearchForAPrescription (context .page )
@@ -106,8 +106,8 @@ def verify_redirect_to_nhs_number_tab(context):
106106 # Use more relaxed URL checking
107107 current_url = context .page .url
108108 assert (
109- "site/search" in current_url
110- ), f"Expected URL to contain 'site/search', got: { current_url } "
109+ "site/search-by-nhs-number " in current_url
110+ ), f"Expected URL to contain 'site/search-by-nhs-number ', got: { current_url } "
111111
112112 # Use the POM to verify we're on the NHS number search tab
113113 search_page = SearchForAPrescription (context .page )
0 commit comments