Skip to content

Commit 84b85c3

Browse files
Update custom-global-colors.spec.ts
1 parent 865d40d commit 84b85c3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

e2e-tests/specs/customizer/general/custom-global-colors.spec.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ test.describe('Custom Global Color Control', () => {
3333
);
3434
await clearWelcome(page);
3535

36-
const iframeElement = await page.waitForSelector('iframe');
37-
const frame = await iframeElement.contentFrame();
38-
if (frame) {
39-
await frame.waitForSelector('.block-editor-rich-text__editable');
40-
await frame.locator('.block-editor-rich-text__editable').first().click();
41-
}
36+
await page.locator('.block-editor-rich-text__editable').first().click();
4237
// use Background color control to open the color picker, available since WP 6.1
4338
await page.getByRole('button', { name: 'Background' }).click();
4439
await page.getByRole('option', { name: 'Color: Custom 1' }).click();

0 commit comments

Comments
 (0)