Skip to content

Commit 1272dbc

Browse files
committed
On reports page, I changed the locator to use css selector instead of hard coded nhs number value
1 parent 4051aba commit 1272dbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_reports_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def test_operational_reports_appointment_attendance_not_updated(page: Page) -> N
284284
expect(page.locator("b")).to_contain_text(report_timestamp)
285285

286286
# Open an appointment record from the report
287-
page.get_by_role("link", name="934 9288").click()
287+
page.locator("#listReportDataTable > tbody > tr:nth-child(3) > td:nth-child(1) > a").click()
288288

289289
# Verify the page title is "Appointment Detail"
290290
expect(page.locator("#ntshPageTitle")).to_contain_text("Appointment Detail")

0 commit comments

Comments
 (0)