Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jan 24, 2025
1 parent cfc132e commit 8e6fd01
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: new RegExp(content.buttonText, 'i') });
const button = page.locator('button', { hasText: new RegExp(`^${content.buttonText}$`, 'i') });
await expect(button).toHaveCSS('background-color', content.buttonColor);
}
}

0 comments on commit 8e6fd01

Please sign in to comment.