Products block: Improve stability E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/10075)
This commit is contained in:
parent
7ca65db5b0
commit
78d320bc47
|
@ -151,11 +151,12 @@ for ( const {
|
|||
parentClientId
|
||||
);
|
||||
|
||||
await editor.saveSiteEditorEntities();
|
||||
|
||||
await page.waitForResponse( ( response ) =>
|
||||
response.url().includes( 'wp-json/wp/v2/templates/' )
|
||||
);
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue