Blocks E2E: Fix guest user handling in checkout tests #1847
Annotations
8 errors, 45 warnings, and 15 notices
[blockTheme] › cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:87:2 › Shopper → Coupon › Logged in user cannot apply single-use coupon twice:
plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts#L387
1) [blockTheme] › cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:87:2 › Shopper → Coupon › Logged in user cannot apply single-use coupon twice
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('group', { name: 'Shipping address' }).getByLabel('State', { exact: true }).or(getByRole('group', { name: 'Shipping address' }).getByLabel('Province', { exact: true })).or(getByRole('group', { name: 'Shipping address' }).getByLabel('County'))
============================================================
at checkout/checkout.page.ts:387
385 | .or( province )
386 | .or( county )
> 387 | .fill( customerShippingDetails.state );
| ^
388 | }
389 |
390 | if ( customerShippingDetails.postcode ) {
at CheckoutPage.fillShippingDetails (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts:387:6)
at CheckoutPage.fillInCheckoutWithTestData (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts:89:4)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:101:3
|
[blockTheme] › cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:87:2 › Shopper → Coupon › Logged in user cannot apply single-use coupon twice:
plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts#L387
1) [blockTheme] › cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:87:2 › Shopper → Coupon › Logged in user cannot apply single-use coupon twice
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.fill: Timeout 10000ms exceeded.
=========================== logs ===========================
waiting for getByRole('group', { name: 'Shipping address' }).getByLabel('State', { exact: true }).or(getByRole('group', { name: 'Shipping address' }).getByLabel('Province', { exact: true })).or(getByRole('group', { name: 'Shipping address' }).getByLabel('County'))
============================================================
at checkout/checkout.page.ts:387
385 | .or( province )
386 | .or( county )
> 387 | .fill( customerShippingDetails.state );
| ^
388 | }
389 |
390 | if ( customerShippingDetails.postcode ) {
at CheckoutPage.fillShippingDetails (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts:387:6)
at CheckoutPage.fillInCheckoutWithTestData (/home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/checkout/checkout.page.ts:89:4)
at /home/runner/work/woocommerce/woocommerce/plugins/woocommerce-blocks/tests/e2e/tests/cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:101:3
|
[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@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=0"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=1"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=2"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=3"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=4"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=5"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=6"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_type": "Frame"}, "_selector": "[data-block-name=\"woocommerce/legacy-template\"] >> internal:role=list >> .product >> nth=7"}, {"_frame": {"_guid": "frame@512a895723690958ffe54af6f746d442", "_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
|
[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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toHaveLength(expected)
Expected length: 16
Received length: 0
Received array: []
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
|
[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
1) [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
|
[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
1) [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
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
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
|
[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
1) [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
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
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
|
Side Effects [1/5]
Process completed with exit code 1.
|
🎭 Playwright Run Summary
2 skipped
37 passed (5.0m)
|
🎭 Playwright Run Summary
37 passed (2.1m)
|
🎭 Playwright Run Summary
28 passed (5.3m)
|
🎭 Playwright Run Summary
1 flaky
[blockTheme] › cart/cart-checkout-block-coupons.shopper.block_theme.spec.ts:87:2 › Shopper → Coupon › Logged in user cannot apply single-use coupon twice
30 passed (4.6m)
|
🎭 Playwright Run Summary
2 passed (19.3s)
|
🎭 Playwright Run Summary
10 passed (1.0m)
|
🎭 Playwright Run Summary
6 passed (1.2m)
|
🎭 Playwright Run Summary
4 skipped
25 passed (3.6m)
|
🎭 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.7m)
|
🎭 Playwright Run Summary
3 passed (22.0s)
|
🎭 Playwright Run Summary
17 passed (5.2m)
|
🎭 Playwright Run Summary
3 passed (17.0s)
|
🎭 Playwright Run Summary
8 skipped
29 passed (5.2m)
|
🎭 Playwright Run Summary
15 passed (2.9m)
|
🎭 Playwright Run Summary
1 failed
[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
28 passed (4.9m)
|
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 [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/.
|
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 [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/.
|
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/.
|
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/.
|
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/.
|
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]
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]
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/.
|
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/.
|
Block Theme With Templates [1/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 [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/.
|
Block Theme With Templates [3/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 [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/.
|
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 [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 [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 [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]
Failed to restore: Cache service responded with 429
|
Side Effects [1/5]
Failed to restore: Cache service responded with 429
|
Side Effects [1/5]
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/upload-artifact@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
Expired
|
16.3 MB |
|