This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
[PHP 8.1 Compatibility] Check That Data is Countable in ProductQuery BlockType #6811
Annotations
10 errors, 5 warnings, and 1 notice
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L29
1) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:7:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or)
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
+ "3",
"0",
- "2",
- "2",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
27 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
28 | )
> 29 | ).toHaveText( expectedValues );
| ^
30 | } );
31 |
32 | test( 'should show correct attrs count (color=blue,gray|query_type_color=or)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:29:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L29
1) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:7:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
+ "3",
"0",
- "2",
- "2",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
27 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
28 | )
> 29 | ).toHaveText( expectedValues );
| ^
30 | } );
31 |
32 | test( 'should show correct attrs count (color=blue,gray|query_type_color=or)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:29:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L29
1) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:7:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
+ "3",
"0",
- "2",
- "2",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
27 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
28 | )
> 29 | ).toHaveText( expectedValues );
| ^
30 | } );
31 |
32 | test( 'should show correct attrs count (color=blue,gray|query_type_color=or)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:29:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L54
2) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:32:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue,gray|query_type_color=or)
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
"3",
- "2",
- "2",
+ "3",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
52 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
53 | )
> 54 | ).toHaveText( expectedValues );
| ^
55 | } );
56 |
57 | test( 'should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:54:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L54
2) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:32:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue,gray|query_type_color=or)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
"3",
- "2",
- "2",
+ "3",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
52 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
53 | )
> 54 | ).toHaveText( expectedValues );
| ^
55 | } );
56 |
57 | test( 'should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:54:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L54
2) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:32:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue,gray|query_type_color=or)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "4",
"3",
- "2",
- "2",
+ "3",
+ "1",
+ "1",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
52 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
53 | )
> 54 | ).toHaveText( expectedValues );
| ^
55 | } );
56 |
57 | test( 'should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)', async ( {
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:54:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L79
3) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:57:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "2",
- "0",
- "1",
"1",
+ "0",
+ "0",
+ "0",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
77 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
78 | )
> 79 | ).toHaveText( expectedValues );
| ^
80 | } );
81 | } );
82 |
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:79:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L79
3) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:57:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "2",
- "0",
- "1",
"1",
+ "0",
+ "0",
+ "0",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
77 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
78 | )
> 79 | ).toHaveText( expectedValues );
| ^
80 | } );
81 | } );
82 |
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:79:5
|
tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L79
3) [blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:57:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 20000ms waiting for expect(received).toHaveText(expected) // deep equality
- Expected - 3
+ Received + 3
Array [
- "2",
- "0",
- "1",
"1",
+ "0",
+ "0",
+ "0",
"0",
]
Call log:
- expect.toHaveText with timeout 20000ms
- waiting for locator('ul.wc-block-attribute-filter-list').first().locator('> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])')
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 0 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
- locator resolved to 5 elements
77 | '> li:not([class^="is-loading"]) .wc-filter-element-label-list-count > span:not([class^="screen-reader"])'
78 | )
> 79 | ).toHaveText( expectedValues );
| ^
80 | } );
81 | } );
82 |
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:79:5
|
tests/e2e/tests/product-collection/product-collection.block_theme.spec.ts#L195
4) [blockTheme] › product-collection/product-collection.block_theme.spec.ts:189:3 › Product Collection › Product Collection Sidebar Settings › Products can be filtered based on product attributes like color, size etc.
Error: Timed out 20000ms waiting for expect(received).toHaveCount(expected) // deep equality
Expected: 3
Received: 2
Call log:
- expect.toHaveCount with timeout 20000ms
- waiting for locator('.wc-block-product-template .wc-block-product').locator('visible=true')
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
- locator resolved to 2 elements
- unexpected value "2"
193 | await pageObject.setProductAttribute( 'Color', 'Green' );
194 |
> 195 | await expect( pageObject.products ).toHaveCount( 3 );
| ^
196 |
197 | await pageObject.setProductAttribute( 'Size', 'Large' );
198 |
at /home/runner/work/woocommerce-blocks/woocommerce-blocks/tests/e2e/tests/product-collection/product-collection.block_theme.spec.ts:195:40
|
[blockTheme] › templates/checkout-template.block_theme.spec.ts#L1
[blockTheme] › templates/checkout-template.block_theme.spec.ts took 5.3m
|
[blockTheme] › product-collection/product-collection.block_theme.spec.ts#L1
[blockTheme] › product-collection/product-collection.block_theme.spec.ts took 4.2m
|
[blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts#L1
[blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts took 3.3m
|
[blockTheme] › templates/cart-template.block_theme.spec.ts#L1
[blockTheme] › templates/cart-template.block_theme.spec.ts took 2.9m
|
[blockTheme] › add-to-cart-form/add-to-cart-form.block_theme.spec.ts#L1
[blockTheme] › add-to-cart-form/add-to-cart-form.block_theme.spec.ts took 33.9s
|
6 failed
[blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:7:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or)
[blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:32:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue,gray|query_type_color=or)
[blockTheme] › attributes-filter/filter-products-by-attributes-count.block_theme.spec.ts:57:6 › Filter by Attributes Block - with All products Block › should show correct attrs count (color=blue|query_type_color=or|min_price=15|max_price=40)
[blockTheme] › product-collection/product-collection.block_theme.spec.ts:189:3 › Product Collection › Product Collection Sidebar Settings › Products can be filtered based on product attributes like color, size etc.
[blockTheme] › templates/cart-template.block_theme.spec.ts:29:6 › Test the cart template › Template can be accessed from the page editor
[blockTheme] › templates/checkout-template.block_theme.spec.ts:29:6 › Test the checkout template › Template can be accessed from the page editor
1 flaky
[blockTheme] › templates/cart-template.block_theme.spec.ts:95:6 › Test editing the cart template › Template can be modified
1 skipped
44 passed (19.5m)
|
The logs for this run have expired and are no longer available.
Loading