Blocks E2E: Wait for Site Editor canvas loader (#47541)

This commit is contained in:
Bart Kalisz 2024-05-16 14:49:32 +02:00 committed by GitHub
parent 8bf9e966d4
commit a7bbdb99a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -223,7 +223,14 @@ export class EditorUtils {
} )
.dispatchEvent( 'click' );
await this.page.locator( '.edit-site-layout__sidebar' ).waitFor( {
const sidebar = this.page.locator( '.edit-site-layout__sidebar' );
const canvasLoader = this.page.locator( '.edit-site-canvas-loader' );
await sidebar.waitFor( {
state: 'hidden',
} );
await canvasLoader.waitFor( {
state: 'hidden',
} );
}

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Blocks E2E: Wait for Site Editor canvas loader in the `enterEditMore()` utility.