Validate and present custom error for not in allowed emails coupons #1892
Annotations
8 errors, 57 warnings, and 15 notices
[blockTheme] › product-collection/product-collection.block_theme.spec.ts:139:3 › Product Collection › Renders correctly with all Product Elements › On a Home Page:
plugins/woocommerce-blocks/tests/e2e/tests/product-collection/product-collection.block_theme.spec.ts#L96
1) [blockTheme] › product-collection/product-collection.block_theme.spec.ts:139:3 › Product Collection › Renders correctly with all Product Elements › On a Home Page
Error: Timed out 5000ms waiting for expect(received).toContainText(expected)
- Expected string - 1
+ Received string + 27
- woo-beanie
+
+
+
+
+ Sale
+ Product on sale
+
+
+
+
+ Beanie
+
+
+ $20.00 Original price was: $20.00.$18.00Current price is: $18.00.
+
+
+
+
+ Add to cart
+
+
+
+ View cart
+
+
+
+
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('.wc-block-product-template .wc-block-product').nth(1)
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View cart
"
- locator resolved to <li data-wc-key="product-item-10" class="wc-block-pr…>…</li>
- unexpected value "
Sale
Product on sale
Beanie
$20.00 Original price was: $20.00.$18.00Current price is: $18.00.
Add to cart
View c
|
[blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted:
plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts#L415
1) [blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('heading', { name: 'Editing template part: Mini-Cart' }) to be visible
============================================================
at ../utils/editor/editor-utils.page.ts:415
413 | name: `Editing ${ templateTypeName }: ${ templateName }`,
414 | } )
> 415 | .waitFor();
| ^
416 | }
417 |
418 | async revertTemplateCreation( templateName: string ) {
at EditorUtils.visitTemplateEditor (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts:415:5)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:29:4
|
[blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Checkout Header template › can be modified and reverted:
plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts#L415
2) [blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Checkout Header template › can be modified and reverted
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('heading', { name: 'Editing template part: Checkout Header' }) to be visible
============================================================
at ../utils/editor/editor-utils.page.ts:415
413 | name: `Editing ${ templateTypeName }: ${ templateName }`,
414 | } )
> 415 | .waitFor();
| ^
416 | }
417 |
418 | async revertTemplateCreation( templateName: string ) {
at EditorUtils.visitTemplateEditor (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts:415:5)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.spec.ts:29:4
|
[blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products:
plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts#L150
1) [blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products
Error: expect(received).toHaveLength(expected)
Expected length: 16
Received length: 9
Received array: [{"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=0"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=1"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=2"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=3"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=4"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=5"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=6"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=7"}, {"_frame": {"_guid": "frame@be529193859e23d306d452200dd787d4", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=8"}]
148 | .all();
149 |
> 150 | expect( products ).toHaveLength( 16 );
| ^
151 | } );
152 |
153 | // eslint-disable-next-line playwright/no-skipped-test
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/price-filter/price-filter.block_theme.side_effects.spec.ts:150:22
|
[classicTheme] › mini-cart/mini-cart-block.merchant.classic_theme.spec.ts:40:7 › Merchant → Mini Cart › in widget editor › can only be inserted once:
plugins/woocommerce-blocks/tests/e2e/tests/mini-cart/mini-cart-block.merchant.classic_theme.spec.ts#L53
1) [classicTheme] › mini-cart/mini-cart-block.merchant.classic_theme.spec.ts:40:7 › Merchant → Mini Cart › in widget editor › can only be inserted once
Error: Timed out 5000ms waiting for expect(received).toBeHidden()
Call log:
- expect.toBeHidden with timeout 5000ms
- waiting for getByRole('option', { name: 'Mini-Cart', exact: true })
- locator resolved to <button type="button" tabindex="-1" role="option" id="id…>…</button>
- unexpected value "visible"
- locator resolved to <button type="button" tabindex="-1" role="option" id="id…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
- locator resolved to <button tabindex="0" type="button" role="option" id="id-…>…</button>
- unexpected value "visible"
51 | } );
52 |
> 53 | await expect( miniCartButton ).toBeHidden();
| ^
54 | } );
55 | } );
56 | } );
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/mini-cart/mini-cart-block.merchant.classic_theme.spec.ts:53:35
|
[blockThemeWithGlobalSideEffects] › templates/template-customization.block_theme.side_effects.spec.ts:28:7 › Mini-Cart template › user-modified Mini-Cart template based on the theme template has priority over the user-modified template based on the default WooCommerce template:
plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts#L415
1) [blockThemeWithGlobalSideEffects] › templates/template-customization.block_theme.side_effects.spec.ts:28:7 › Mini-Cart template › user-modified Mini-Cart template based on the theme template has priority over the user-modified template based on the default WooCommerce template
TimeoutError: locator.waitFor: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('heading', { name: 'Editing template part: Mini-Cart' }) to be visible
============================================================
at ../utils/editor/editor-utils.page.ts:415
413 | name: `Editing ${ templateTypeName }: ${ templateName }`,
414 | } )
> 415 | .waitFor();
| ^
416 | }
417 |
418 | async revertTemplateCreation( templateName: string ) {
at EditorUtils.visitTemplateEditor (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/utils/editor/editor-utils.page.ts:415:5)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/templates/template-customization.block_theme.side_effects.spec.ts:35:4
|
[blockThemeWithGlobalSideEffects] › checkout/additional-fields.merchant.block_theme.side_effects.spec.ts:180:2 › Merchant → Additional Checkout Fields › Merchant can edit custom fields from the order admin page:
plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.merchant.block_theme.side_effects.spec.ts#L316
1) [blockThemeWithGlobalSideEffects] › checkout/additional-fields.merchant.block_theme.side_effects.spec.ts:180:2 › Merchant → Additional Checkout Fields › Merchant can edit custom fields from the order admin page
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('textbox', { name: 'Government ID', exact: true })
============================================================
314 | exact: true,
315 | } )
> 316 | .fill( '88888' );
| ^
317 | await admin.page
318 | .getByRole( 'textbox', {
319 | name: 'Confirm government ID',
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.merchant.block_theme.side_effects.spec.ts:316:5
|
[blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order:
plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.shopper.block_theme.side_effects.spec.ts#L283
2) [blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order
TimeoutError: page.waitForResponse: Timeout 10000ms exceeded while waiting for event "response"
281 | .getByLabel( 'How wide is your road?' )
282 | .fill( 'narrow' );
> 283 | await checkoutPageObject.page.waitForResponse( ( response ) => {
| ^
284 | return response.url().indexOf( 'wc/store/v1/batch' ) !== -1;
285 | } );
286 |
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:283:34
|
🎭 Playwright Run Summary
1 flaky
[blockTheme] › product-collection/product-collection.block_theme.spec.ts:139:3 › Product Collection › Renders correctly with all Product Elements › On a Home Page
2 skipped
39 passed (6.2m)
|
🎭 Playwright Run Summary
37 passed (2.1m)
|
🎭 Playwright Run Summary
10 passed (1.1m)
|
🎭 Playwright Run Summary
2 flaky
[blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Mini-Cart template › can be modified and reverted
[blockTheme] › templates/template-customization.block_theme.spec.ts:22:7 › Checkout Header template › can be modified and reverted
26 passed (6.0m)
|
🎭 Playwright Run Summary
31 passed (3.8m)
|
🎭 Playwright Run Summary
6 passed (1.2m)
|
🎭 Playwright Run Summary
2 passed (16.9s)
|
🎭 Playwright Run Summary
1 flaky
[blockThemeWithGlobalSideEffects] › price-filter/price-filter.block_theme.side_effects.spec.ts:138:6 › woocommerce/price-filter Block - with PHP classic template › should show all products
1 skipped
25 passed (4.5m)
|
🎭 Playwright Run Summary
1 flaky
[classicTheme] › mini-cart/mini-cart-block.merchant.classic_theme.spec.ts:40:7 › Merchant → Mini Cart › in widget editor › can only be inserted once
2 passed (31.3s)
|
🎭 Playwright Run Summary
4 skipped
25 passed (3.7m)
|
🎭 Playwright Run Summary
1 flaky
[blockThemeWithGlobalSideEffects] › templates/template-customization.block_theme.side_effects.spec.ts:28:7 › Mini-Cart template › user-modified Mini-Cart template based on the theme template has priority over the user-modified template based on the default WooCommerce template
16 passed (5.5m)
|
🎭 Playwright Run Summary
15 passed (2.9m)
|
🎭 Playwright Run Summary
3 passed (18.9s)
|
🎭 Playwright Run Summary
8 skipped
29 passed (5.1m)
|
🎭 Playwright Run Summary
2 flaky
[blockThemeWithGlobalSideEffects] › checkout/additional-fields.merchant.block_theme.side_effects.spec.ts:180:2 › Merchant → Additional Checkout Fields › Merchant can edit custom fields from the order admin page
[blockThemeWithGlobalSideEffects] › checkout/additional-fields.shopper.block_theme.side_effects.spec.ts:236:3 › Shopper → Additional Checkout Fields › Logged in shopper › Shopper can change the values of fields multiple times and place the order
27 passed (4.8m)
|
Default (Block) Theme [3/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [3/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Default (Block) Theme [2/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [2/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Default (Block) Theme [4/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [4/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Default (Block) Theme [5/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [5/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Classic Theme [2/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [2/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Default (Block) Theme [1/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [1/5]
Failed to restore: Cache service responded with 429
|
Default (Block) Theme [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Classic Theme [1/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [1/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Classic Theme [3/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [3/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Side Effects [3/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [4/5]
Failed to restore: Cache service responded with 429
|
Side Effects [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Classic Theme [4/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Side Effects [5/5]
Failed to restore: Cache service responded with 429
|
Side Effects [5/5]
Failed to restore: Cache service responded with 429
|
Side Effects [2/5]
Failed to restore: Cache service responded with 429
|
Side Effects [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Side Effects [2/5]
Failed to restore: Cache service responded with 429
|
Side Effects [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Block Theme With Templates [1/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [1/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Classic Theme [5/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [5/5]
Failed to restore: Cache service responded with 429
|
Classic Theme [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Block Theme With Templates [4/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [4/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [3/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Block Theme With Templates [3/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [3/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Side Effects [4/5]
Failed to restore: Cache service responded with 429
|
Side Effects [4/5]
Failed to restore: Cache service responded with 429
|
Side Effects [4/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Block Theme With Templates [2/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [2/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [2/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Block Theme With Templates [5/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [5/5]
Failed to restore: Cache service responded with 429
|
Block Theme With Templates [5/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Side Effects [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report-Side Effects
|
16.4 MB |
|