Skip to content
Prev Previous commit
Next Next commit
change button to link
  • Loading branch information
jbdalton committed Feb 11, 2026
commit 1393d13f7cb909bb82974b1699ed177cefbe14a6
3 changes: 1 addition & 2 deletions playwright/pages/item-media.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class ItemMediaPage {
this.shareButton = page.getByRole("button", { name: "Share" });

// Purchase option
this.orderPrintButton = page.locator("#print-btn");
this.orderPrintButton = page.getByRole("link", { name: /Order Print/i });
}

async loadPage(uuid: string): Promise<void> {
Expand Down Expand Up @@ -110,7 +110,6 @@ export default class ItemMediaPage {
// Check button
async verifyOrderPrintButton(): Promise<void> {
await expect(this.orderPrintButton).toBeVisible();
await expect(this.orderPrintButton).toHaveText(/Order Print/i);
}

// Check vendor link
Expand Down