Skip to content

Commit

Permalink
Fix e2et tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Mar 23, 2021
1 parent 4eefda0 commit 4689e46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const createTemplatePart = async (
await createNewButton.click();
await page.waitForSelector(
isNested
? '.wp-block-template-part .wp-block-template-part .block-editor-block-list__layout'
: '.wp-block-template-part .block-editor-block-list__layout'
? '.wp-block-template-part .wp-block-template-part.block-editor-block-list__layout'
: '.wp-block-template-part.block-editor-block-list__layout'
);
await openDocumentSettingsSidebar();

Expand Down Expand Up @@ -204,7 +204,7 @@ describe( 'Multi-entity editor states', () => {

// Wait for site editor to load.
await canvas().waitForSelector(
'.wp-block-template-part .block-editor-block-list__layout'
'.wp-block-template-part.block-editor-block-list__layout'
);

// Our custom template shows up in the "Templates > General" menu; let's use it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe( 'Multi-entity save flow', () => {
const checkboxInputSelector = '.components-checkbox-control__input';
const entitiesSaveSelector = '.editor-entities-saved-states__save-button';
const templatePartSelector = '*[data-type="core/template-part"]';
const activatedTemplatePartSelector = `${ templatePartSelector } .block-editor-block-list__layout`;
const activatedTemplatePartSelector = `${ templatePartSelector }.block-editor-block-list__layout`;
const savePanelSelector = '.entities-saved-states__panel';
const closePanelButtonSelector =
'.editor-post-publish-panel__header-cancel-button button';
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 @@ -262,7 +262,7 @@ describe( 'Template Part', () => {
'.editor-entities-saved-states__save-button';
const savePostSelector = '.editor-post-publish-button__button';
const templatePartSelector = '*[data-type="core/template-part"]';
const activatedTemplatePartSelector = `${ templatePartSelector } .block-editor-block-list__layout`;
const activatedTemplatePartSelector = `${ templatePartSelector }.block-editor-block-list__layout`;
const testContentSelector = `//p[contains(., "${ testContent }")]`;
const createNewButtonSelector =
'//button[contains(text(), "New template part")]';
Expand Down

0 comments on commit 4689e46

Please sign in to comment.