Skip to content

Commit

Permalink
update selector and add condition (#56441)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo committed Sep 23, 2021
1 parent f60739b commit ba7eb23
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/e2e/lib/components/site-editor-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ export default class SiteEditorComponent extends AbstractEditorComponent {
}

async waitForTemplatePartsToLoad() {
await this.runInCanvas( async () => {
return await this.runInCanvas( async () => {
await driverHelper.waitUntilElementNotLocated(
this.driver,
By.css( '.wp-block-template-part > .components-spinner' )
);
await driverHelper.waitUntilElementNotLocated(
this.driver,
By.css( '.wp-block-template-part .components-spinner' )
By.css( '.wp-block-template-part > .block-editor-warning' )
);
} );
}
Expand Down

0 comments on commit ba7eb23

Please sign in to comment.