Skip to content

Commit

Permalink
Merge branch 'fix-test-diconnected-state'
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Jan 28, 2025
2 parents 48901c8 + a9d6022 commit ebb9f98
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 ebb9f98

Please sign in to comment.