We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d53981 commit a2bf020Copy full SHA for a2bf020
1 file changed
packages/e2e-test-utils-playwright/src/editor/site-editor.ts
@@ -24,6 +24,10 @@ export async function saveSiteEditorEntities( this: Editor ) {
24
.getByRole( 'button', { name: 'Save', exact: true } )
25
.click();
26
27
- // Wait for the saved status.
28
- await editorTopBar.getByRole( 'button', { name: 'Saved' } ).waitFor();
+ // A role selector cannot be used here because it needs to check that the `is-busy` class is not present.
+ await this.page
29
+ .locator( '[aria-label="Editor top bar"] [aria-label="Saved"].is-busy' )
30
+ .waitFor( {
31
+ state: 'hidden',
32
+ } );
33
}
0 commit comments