Skip to content

Commit

Permalink
Fix template part switching instability (#23282)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Jun 18, 2020
1 parent 095e9b1 commit 881b7f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/e2e-tests/specs/editor/blocks/heading.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ describe( 'Heading', () => {
it( 'it should correctly apply custom colors', async () => {
await clickBlockAppender();
await page.keyboard.type( '### Heading' );
const [ colorPanelToggle ] = await page.$x(
const colorPanelToggle = await page.waitForXPath(
COLOR_PANEL_TOGGLE_X_SELECTOR
);
await colorPanelToggle.click();

const [ customTextColorButton ] = await page.$x(
`${ CUSTOM_COLOR_BUTTON_X_SELECTOR }`
const customTextColorButton = await page.waitForXPath(
CUSTOM_COLOR_BUTTON_X_SELECTOR
);

await customTextColorButton.click();
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/experiments/template-part.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe( 'Template Part', () => {
await page.click(
'.components-dropdown-menu__toggle[aria-label="Switch Template"]'
);
const [ switchToHeaderTemplatePartButton ] = await page.$x(
const switchToHeaderTemplatePartButton = await page.waitForXPath(
'//button[contains(text(), "header")]'
);
await switchToHeaderTemplatePartButton.click();
Expand Down

0 comments on commit 881b7f2

Please sign in to comment.