Skip to content

Commit

Permalink
fix: e2e issue with wp 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Nov 19, 2024
1 parent bbe4997 commit 2a922b7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions e2e-tests/specs/customizer/general/custom-global-colors.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ test.describe('Custom Global Color Control', () => {
);
await clearWelcome(page);

await page.waitForTimeout( 200 );
await page.locator( '.block-editor-default-block-appender__content' ).click();

await page.locator('.block-editor-rich-text__editable').first().click();
const iframeElement = await page.waitForSelector('iframe');
const frame = await iframeElement.contentFrame();
if (frame) {
await frame.waitForSelector('.block-editor-rich-text__editable');
await frame.locator('.block-editor-rich-text__editable').first().click();
}
// use Background color control to open the color picker, available since WP 6.1
await page.getByRole('button', { name: 'Background' }).click();
await page.getByRole('option', { name: 'Color: Custom 1' }).click();
Expand Down

0 comments on commit 2a922b7

Please sign in to comment.