Skip to content

Commit

Permalink
Fix other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanijak committed Mar 18, 2024
1 parent fc2c6fe commit 778666d
Showing 1 changed file with 8 additions and 2 deletions.
Expand Up @@ -441,8 +441,10 @@ test.describe( 'Product Collection', () => {

test( 'should work as expected in Product Catalog template', async ( {
pageObject,
editor,
} ) => {
await pageObject.goToProductCatalogAndInsertCollection();
await editor.openDocumentSettingsSidebar();

const sidebarSettings =
await pageObject.locateSidebarSettings();
Expand Down Expand Up @@ -493,10 +495,12 @@ test.describe( 'Product Collection', () => {

test( 'is enabled by default in 1st Product Collection and disabled in 2nd+', async ( {
pageObject,
editor,
} ) => {
// First Product Catalog
// Option should be visible & ENABLED by default
await pageObject.goToProductCatalogAndInsertCollection();
await editor.openDocumentSettingsSidebar();

const sidebarSettings =
await pageObject.locateSidebarSettings();
Expand Down Expand Up @@ -746,7 +750,7 @@ test.describe( 'Product Collection', () => {
await expect( pageObject.products ).toHaveCount( 4 );
} );

test( "Product Catalog Collection can be added in post and doesn't inherit query from template", async ( {
test( "Product Catalog Collection can be added in post and doesn't sync query with template", async ( {
pageObject,
} ) => {
await pageObject.createNewPostAndInsertBlock( 'productCatalog' );
Expand All @@ -764,12 +768,14 @@ test.describe( 'Product Collection', () => {
await expect( pageObject.products ).toHaveCount( 9 );
} );

test( 'Product Catalog Collection can be added in product archive and inherits query from template', async ( {
test( 'Product Catalog Collection can be added in product archive and syncs query with template', async ( {
pageObject,
editor,
} ) => {
await pageObject.goToProductCatalogAndInsertCollection(
'productCatalog'
);
await editor.openDocumentSettingsSidebar();

const sidebarSettings = await pageObject.locateSidebarSettings();
const input = sidebarSettings.locator(
Expand Down

0 comments on commit 778666d

Please sign in to comment.