Skip to content

Commit

Permalink
E2E: Improve selectors for selecting colors
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshupathak95 committed Jan 30, 2025
1 parent 4621331 commit 9aacc02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/contrast-checker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ test.describe( 'ContrastChecker', () => {
} );

await page.getByRole( 'button', { name: 'Text', exact: true } ).click();
await page.getByLabel( 'Black' ).click();
await page.getByRole( 'option', { name: 'Black' } ).click();

await page.getByRole( 'button', { name: 'Background' } ).click();
await page.getByLabel( 'Black' ).click();
await page.getByRole( 'option', { name: 'Black' } ).click();

const lowContrastWarning = page.locator(
'.block-editor-contrast-checker'
Expand Down

0 comments on commit 9aacc02

Please sign in to comment.