diff --git a/tests/ui-smoke.spec.ts b/tests/ui-smoke.spec.ts index 2297d80857..9e48aab3d7 100644 --- a/tests/ui-smoke.spec.ts +++ b/tests/ui-smoke.spec.ts @@ -3406,7 +3406,7 @@ test.describe("Clinical KB UI smoke coverage", () => { await acamprosateResult.click(); await expect(page).toHaveURL(/\/medications\/acamprosate$/, { timeout: 30_000 }); await expectSingleMedicationPage(page); - await expect(page.getByRole("link", { name: "Medications", exact: true }).first()).toBeVisible(); + await expect(page.getByRole("link", { name: "Back to medications" }).first()).toBeVisible(); expect(parentNodeErrors).toEqual([]); });