diff --git a/e2e-tests/specs/customizer/general/custom-global-colors.spec.ts b/e2e-tests/specs/customizer/general/custom-global-colors.spec.ts index 7b54963d32..7ab8ab8caa 100644 --- a/e2e-tests/specs/customizer/general/custom-global-colors.spec.ts +++ b/e2e-tests/specs/customizer/general/custom-global-colors.spec.ts @@ -32,10 +32,7 @@ test.describe('Custom Global Color Control', () => { '/wp-admin/post.php?post=1&action=edit&test_name=custom-global-colors' ); await clearWelcome(page); - - await page.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('tab', { name: 'Style' }).click(); + await page.frameLocator('[name="editor-canvas"]').locator('.block-editor-rich-text__editable').first().click(); await page.getByRole('button', { name: 'Background' }).click(); await page.getByRole('option', { name: 'Color: Custom 1' }).click(); await page diff --git a/e2e-tests/specs/customizer/hfg/hfg-menu-item-description.spec.ts b/e2e-tests/specs/customizer/hfg/hfg-menu-item-description.spec.ts index afbf8c701c..d5c7552b37 100644 --- a/e2e-tests/specs/customizer/hfg/hfg-menu-item-description.spec.ts +++ b/e2e-tests/specs/customizer/hfg/hfg-menu-item-description.spec.ts @@ -28,11 +28,7 @@ test.describe('Menu item description', function () { await page.getByRole('button', { name: 'Add New Category' }).click(); await page.goto('wp-admin/nav-menus.php'); - await page - .getByRole('heading', { - name: 'Categories Press return or enter to open this section ', - }) - .click(); + await page.getByRole('button', { name: 'Categories' }).click(); await page .locator('#taxonomy-category-tabs') .getByRole('link', { name: 'View All' })