Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/ui-smoke.spec.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -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();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update the mobile back-link locator as well

When verify:ui reaches the adjacent mobile prescribing case, it still queries the link as name: "Medications", exact: true at line 3441, while InPageNavHeader assigns aria-label="Back to medications" at every breakpoint. The critical desktop case will now pass, but the PR UI suite will fail in the mobile case before its touch-target and navigation assertions; update both locators and run the named mobile test as the smallest proof.

Useful? React with 👍 / 👎.


expect(parentNodeErrors).toEqual([]);
});
Expand Down