chore: review #52
Annotations
10 errors and 1 notice
Run the tests:
tests/e2e/specs/attach-modal.spec.js#L27
1) [chromium] › attach-modal.spec.js:11:6 › Attach Modal › attach to products and check ──────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('#ppom-product-form div').filter({ hasText: 'Display on Specific Products' }).first().locator('select[name="ppom-attach-to-products\\[\\]"]')
25 | .first()
26 | .locator('select[name="ppom-attach-to-products\\[\\]"]');
> 27 | await productSelector.selectOption({ index: 0 });
| ^
28 |
29 | const selectedOption = await productSelector.inputValue();
30 | console.log("Selected option value:", selectedOption);
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:27:25
|
Run the tests:
tests/e2e/specs/attach-modal.spec.js#L27
1) [chromium] › attach-modal.spec.js:11:6 › Attach Modal › attach to products and check ──────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('#ppom-product-form div').filter({ hasText: 'Display on Specific Products' }).first().locator('select[name="ppom-attach-to-products\\[\\]"]')
25 | .first()
26 | .locator('select[name="ppom-attach-to-products\\[\\]"]');
> 27 | await productSelector.selectOption({ index: 0 });
| ^
28 |
29 | const selectedOption = await productSelector.inputValue();
30 | console.log("Selected option value:", selectedOption);
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:27:25
|
Run the tests:
tests/e2e/specs/attach-modal.spec.js#L27
1) [chromium] › attach-modal.spec.js:11:6 › Attach Modal › attach to products and check ──────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('#ppom-product-form div').filter({ hasText: 'Display on Specific Products' }).first().locator('select[name="ppom-attach-to-products\\[\\]"]')
25 | .first()
26 | .locator('select[name="ppom-attach-to-products\\[\\]"]');
> 27 | await productSelector.selectOption({ index: 0 });
| ^
28 |
29 | const selectedOption = await productSelector.inputValue();
30 | console.log("Selected option value:", selectedOption);
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:27:25
|
Run the tests:
eval at evaluate (:234:30)#L2
2) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Error: page.evaluate: TypeError: Cannot read properties of null (reading 'classList')
at eval (eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (<anonymous>:236:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:236:17)
at UtilityScript.<anonymous> (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:1:44)
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:60:14
|
Run the tests:
eval at evaluate (:234:30)#L2
2) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: TypeError: Cannot read properties of null (reading 'classList')
at eval (eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (<anonymous>:236:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:236:17)
at UtilityScript.<anonymous> (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:1:44)
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:60:14
|
Run the tests:
eval at evaluate (:234:30)#L2
2) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: TypeError: Cannot read properties of null (reading 'classList')
at eval (eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (<anonymous>:236:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/eval at evaluate (:234:30), <anonymous>:2:68)
at UtilityScript.evaluate (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:236:17)
at UtilityScript.<anonymous> (/home/runner/work/woocommerce-product-addon/woocommerce-product-addon/<anonymous>:1:44)
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:60:14
|
Run the tests:
tests/e2e/specs/checkbox.spec.js#L75
3) [chromium] › checkbox.spec.js:26:9 › Checkbox › check default selected options ────────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="ppom-attach-to-products\\[\\]"]')
73 | await page.waitForLoadState("networkidle");
74 |
> 75 | await productSelector.selectOption({ index: 0 });
| ^
76 | const selectedProductId = await productSelector.inputValue();
77 | await page.getByRole("button", { name: "Save", exact: true }).click();
78 |
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/checkbox.spec.js:75:31
|
Run the tests:
tests/e2e/specs/checkbox.spec.js#L75
3) [chromium] › checkbox.spec.js:26:9 › Checkbox › check default selected options ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="ppom-attach-to-products\\[\\]"]')
73 | await page.waitForLoadState("networkidle");
74 |
> 75 | await productSelector.selectOption({ index: 0 });
| ^
76 | const selectedProductId = await productSelector.inputValue();
77 | await page.getByRole("button", { name: "Save", exact: true }).click();
78 |
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/checkbox.spec.js:75:31
|
Run the tests:
tests/e2e/specs/checkbox.spec.js#L75
3) [chromium] › checkbox.spec.js:26:9 › Checkbox › check default selected options ────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="ppom-attach-to-products\\[\\]"]')
73 | await page.waitForLoadState("networkidle");
74 |
> 75 | await productSelector.selectOption({ index: 0 });
| ^
76 | const selectedProductId = await productSelector.inputValue();
77 | await page.getByRole("button", { name: "Save", exact: true }).click();
78 |
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/checkbox.spec.js:75:31
|
Run the tests:
tests/e2e/specs/conditions.spec.js#L114
4) [chromium] › conditions.spec.js:22:6 › Conditions › conditions with Select input ──────────────
TimeoutError: locator.selectOption: Timeout 10000ms exceeded.
Call log:
- waiting for locator('select[name="ppom-attach-to-products\\[\\]"]')
112 | await page.waitForLoadState("networkidle");
113 |
> 114 | await productSelector.selectOption({ index: 0 });
| ^
115 | const selectedOption = await productSelector.inputValue();
116 | console.log("Selected option value:", selectedOption);
117 | await page.getByRole("button", { name: "Save", exact: true }).click();
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/conditions.spec.js:114:25
|
Run the tests
4 failed
[chromium] › attach-modal.spec.js:11:6 › Attach Modal › attach to products and check ───────────
[chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ──────────
[chromium] › checkbox.spec.js:26:9 › Checkbox › check default selected options ─────────────────
[chromium] › conditions.spec.js:22:6 › Conditions › conditions with Select input ───────────────
3 passed (4.1m)
|
Loading