test(atomic): add tests & stories for atomic-product-image #23466
Annotations
10 errors, 1 warning, and 1 notice
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L79
1) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:78:5 › with a fallback image › when the product image is not a string › should render the fallback image when the product image is not a string
Error: Playwright Test did not expect test() to be called here.
Most common reasons include:
- You are calling test() in a configuration file.
- You are calling test() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
77 |
78 | test('should render the fallback image when the product image is not a string', async () => {
> 79 | test('should render the fallback image when the product image is invalid', async ({
| ^
80 | page,
81 | }) => {
82 | // TODO: Implement test
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:79:7
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L79
1) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:78:5 › with a fallback image › when the product image is not a string › should render the fallback image when the product image is not a string
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Playwright Test did not expect test() to be called here.
Most common reasons include:
- You are calling test() in a configuration file.
- You are calling test() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
77 |
78 | test('should render the fallback image when the product image is not a string', async () => {
> 79 | test('should render the fallback image when the product image is invalid', async ({
| ^
80 | page,
81 | }) => {
82 | // TODO: Implement test
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:79:7
|
Run /./.github/actions/playwright-atomic:
packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts#L79
1) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:78:5 › with a fallback image › when the product image is not a string › should render the fallback image when the product image is not a string
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Playwright Test did not expect test() to be called here.
Most common reasons include:
- You are calling test() in a configuration file.
- You are calling test() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
77 |
78 | test('should render the fallback image when the product image is not a string', async () => {
> 79 | test('should render the fallback image when the product image is invalid', async ({
| ^
80 | page,
81 | }) => {
82 | // TODO: Implement test
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:79:7
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
2) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:99:5 › with an alt text field › when imageAltField is a string › should be accessible
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:100:36
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
2) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:99:5 › with an alt text field › when imageAltField is a string › should be accessible
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:100:36
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
2) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:99:5 › with an alt text field › when imageAltField is a string › should be accessible
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:100:36
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
3) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:108:5 › with an alt text field › when imageAltField is an array of strings › should be accessible
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:109:36
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
3) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:108:5 › with an alt text field › when imageAltField is an array of strings › should be accessible
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:109:36
|
Run /./.github/actions/playwright-atomic:
packages/atomic/eval at evaluate (:226:30)#L18857
3) [chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:108:5 › with an alt text field › when imageAltField is an array of strings › should be accessible
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: frame.evaluate: Error: No elements found for include in page Context
at validateContext (eval at evaluate (:226:30), <anonymous>:18857:15)
at new Context (eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (<anonymous>:228:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at validateContext (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18857:15)
at Context (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18838:7)
at Object._getFrameContexts (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:18879:22)
at eval (/home/runner/work/ui-kit/ui-kit/packages/atomic/eval at evaluate (:226:30), <anonymous>:4:27)
at UtilityScript.evaluate (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:228:17)
at UtilityScript.<anonymous> (/home/runner/work/ui-kit/ui-kit/packages/atomic/<anonymous>:1:44)
at AxeBuilder.runPartialRecursive (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:280:39)
at AxeBuilder.analyze (/home/runner/work/ui-kit/ui-kit/node_modules/@axe-core/playwright/dist/index.mjs:210:39)
at /home/runner/work/ui-kit/ui-kit/packages/atomic/src/components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:109:36
|
Run /./.github/actions/playwright-atomic
Process completed with exit code 1.
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "result-lists-screenshots".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Run /./.github/actions/playwright-atomic
3 failed
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:78:5 › with a fallback image › when the product image is not a string › should render the fallback image when the product image is not a string
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:99:5 › with an alt text field › when imageAltField is a string › should be accessible
[chromium] › components/commerce/product-template-components/atomic-product-image/e2e/atomic-product-image.e2e.ts:108:5 › with an alt text field › when imageAltField is an array of strings › should be accessible
13 passed (46.2s)
|
Loading