* Disable render blockified Product Grid Block

* try now
This commit is contained in:
Luigi Teschio 2022-07-06 14:16:32 +02:00 committed by GitHub
parent 75184ae22d
commit 4aaaebe0c0
2 changed files with 6 additions and 10 deletions

View File

@ -371,9 +371,10 @@ class BlockTemplatesController {
return $this->template_parts_directory;
}
if ( $this->package->is_experimental_build() && BlockTemplateUtils::should_use_blockified_product_grid_templates() ) {
return $this->templates_directory . '/blockified';
}
// When the blockified Product Grid Block will be implemented, we need to use the blockified templates.
// if ( $this->package->is_experimental_build() && BlockTemplateUtils::should_use_blockified_product_grid_templates() ) {
// return $this->templates_directory . '/blockified';
// }.
return $this->templates_directory;
}

View File

@ -126,13 +126,8 @@ describe( `${ block.name } Block`, () => {
} );
expect( isRefreshed ).not.toBeCalled();
await Promise.all( [
page.waitForNavigation( {
waitUntil: 'networkidle0',
} ),
page.click( selectors.frontend.filter ),
] );
await page.click( selectors.frontend.filter );
await page.waitForNetworkIdle();
const products = await page.$$(
selectors.frontend.classicProductsList