Fix typo (product-collection.block_theme.spec.ts) (#50154)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
DAnn2012 2024-08-13 13:38:56 +02:00 committed by GitHub
parent b2f5f98593
commit 3a363d232b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -217,24 +217,24 @@ test.describe( 'Product Collection', () => {
await pageObject.createNewPostAndInsertBlock();
const allProducts = pageObject.products;
const salePoducts = pageObject.products.filter( {
const saleProducts = pageObject.products.filter( {
hasText: 'Product on sale',
} );
await expect( allProducts ).toHaveCount( 9 );
await expect( salePoducts ).toHaveCount( 6 );
await expect( saleProducts ).toHaveCount( 6 );
await pageObject.setShowOnlyProductsOnSale( {
onSale: true,
} );
await expect( allProducts ).toHaveCount( 6 );
await expect( salePoducts ).toHaveCount( 6 );
await expect( saleProducts ).toHaveCount( 6 );
await pageObject.publishAndGoToFrontend();
await expect( allProducts ).toHaveCount( 6 );
await expect( salePoducts ).toHaveCount( 6 );
await expect( saleProducts ).toHaveCount( 6 );
} );
test( 'Products can be filtered based on selection in handpicked products option', async ( {

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Comment: Fix typo (product-collection.block_theme.spec.ts)