chore: add E2E and unit test for categories saving #14
Annotations
4 errors and 1 notice
[chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories:
tests/e2e/specs/attach-modal.spec.js#L82
1) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Error: expect(received).toBeGreaterThan(expected)
Expected: > 0
Received: 0
80 | const elements = page.locator(`.ppom-id-${ppomId}`);
81 | const count = await elements.count();
> 82 | expect(count ).toBeGreaterThan(0);
| ^
83 | }
84 | });
85 | });
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:82:19
|
[chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories:
tests/e2e/specs/attach-modal.spec.js#L82
1) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeGreaterThan(expected)
Expected: > 0
Received: 0
80 | const elements = page.locator(`.ppom-id-${ppomId}`);
81 | const count = await elements.count();
> 82 | expect(count ).toBeGreaterThan(0);
| ^
83 | }
84 | });
85 | });
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:82:19
|
[chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories:
tests/e2e/specs/attach-modal.spec.js#L82
1) [chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ─────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBeGreaterThan(expected)
Expected: > 0
Received: 0
80 | const elements = page.locator(`.ppom-id-${ppomId}`);
81 | const count = await elements.count();
> 82 | expect(count ).toBeGreaterThan(0);
| ^
83 | }
84 | });
85 | });
at /home/runner/work/woocommerce-product-addon/woocommerce-product-addon/tests/e2e/specs/attach-modal.spec.js:82:19
|
Playwright E2E tests
Process completed with exit code 1.
|
🎭 Playwright Run Summary
1 failed
[chromium] › attach-modal.spec.js:46:6 › Attach Modal › attach to multiple categories ──────────
4 passed (53.5s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
e2e-playwright-results
Expired
|
19.7 MB |
|