Skip to content

Commit

Permalink
Remove opening of color ToolsPanel menu after controls made default
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Feb 7, 2022
1 parent f999d69 commit f899180
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 22 deletions.
4 changes: 0 additions & 4 deletions packages/e2e-test-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,10 +581,6 @@ Navigates the site editor back

Goes back until it gets to the root

### openColorToolsPanelMenu

Opens the Color tools panel menu provided via block supports.

### openDocumentSettingsSidebar

Clicks on the button in the header which opens Document Settings sidebar when it is closed.
Expand Down
1 change: 0 additions & 1 deletion packages/e2e-test-utils/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export {
} from './observe-focus-loss';
export { openDocumentSettingsSidebar } from './open-document-settings-sidebar';
export { openPublishPanel } from './open-publish-panel';
export { openColorToolsPanelMenu } from './open-color-tools-panel-menu';
export { openTypographyToolsPanelMenu } from './open-typography-tools-panel-menu';
export { trashAllPosts } from './posts';
export { pressKeyTimes } from './press-key-times';
Expand Down
9 changes: 0 additions & 9 deletions packages/e2e-test-utils/src/open-color-tools-panel-menu.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/e2e-tests/specs/editor/blocks/heading.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
clickBlockAppender,
createNewPost,
getEditedPostContent,
openColorToolsPanelMenu,
pressKeyWithModifier,
} from '@wordpress/e2e-test-utils';

Expand Down Expand Up @@ -72,8 +71,6 @@ describe( 'Heading', () => {
it( 'should correctly apply custom colors', async () => {
await clickBlockAppender();
await page.keyboard.type( '### Heading' );
await openColorToolsPanelMenu();
await page.click( 'button[aria-label="Show Text"]' );

const textColorButton = await page.waitForSelector(
COLOR_ITEM_SELECTOR
Expand All @@ -98,8 +95,6 @@ describe( 'Heading', () => {
it( 'should correctly apply named colors', async () => {
await clickBlockAppender();
await page.keyboard.type( '## Heading' );
await openColorToolsPanelMenu();
await page.click( 'button[aria-label="Show Text"]' );

const textColorButton = await page.waitForSelector(
COLOR_ITEM_SELECTOR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
clickBlockAppender,
createNewPost,
getEditedPostContent,
openColorToolsPanelMenu,
pressKeyWithModifier,
transformBlockTo,
} from '@wordpress/e2e-test-utils';
Expand All @@ -18,8 +17,6 @@ describe( 'Keep styles on block transforms', () => {
it( 'Should keep colors during a transform', async () => {
await clickBlockAppender();
await page.keyboard.type( '## Heading' );
await openColorToolsPanelMenu();
await page.click( 'button[aria-label="Show Text"]' );

const textColorButton = await page.waitForSelector(
'.block-editor-panel-color-gradient-settings__dropdown'
Expand Down

0 comments on commit f899180

Please sign in to comment.