Skip to content

Commit

Permalink
FIXUP RENAME Replace regex, narrow button selector
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-jarvelov committed Mar 3, 2025
1 parent 7087e08 commit f259647
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function expectTunnelState(page: Page, content: TunnelStateContent)
await expect(header).toHaveCSS('background-color', content.headerColor);

if (content.buttonText && content.buttonColor) {
const button = page.locator('button', { hasText: content.buttonText });
const button = page.getByRole('button', { name: content.buttonText });
await expect(button).toHaveCSS('background-color', content.buttonColor);
}
}

0 comments on commit f259647

Please sign in to comment.