This commit is contained in:
Luigi Teschio 2023-07-05 09:45:38 +02:00 committed by GitHub
parent 7ca65db5b0
commit 78d320bc47
1 changed files with 6 additions and 5 deletions

View File

@ -151,11 +151,12 @@ for ( const {
parentClientId
);
await editor.saveSiteEditorEntities();
await page.waitForResponse( ( response ) =>
await Promise.all( [
editor.saveSiteEditorEntities(),
page.waitForResponse( ( response ) =>
response.url().includes( 'wp-json/wp/v2/templates/' )
);
),
] );
// @todo This is a workaround to wait for the save button to be enabled. It works only without Gutenberg enabled. We have to refactor this.
await page