Skip to content

test: add WooCommerce product image sync fixture - #1443

Open
adrianpascualdev wants to merge 2 commits into
Posnic:developfrom
adrianpascualdev:feat/woocommerce-image-fixtures
Open

adrianpascualdev wants to merge 2 commits into
Posnic:developfrom
adrianpascualdev:feat/woocommerce-image-fixtures

Conversation

@adrianpascualdev

Copy link
Copy Markdown

Summary

Added a synthetic WooCommerce product image fixture to cover how image references should be handled during product imports.

Changes

  • Added examples for primary and gallery images.
  • Covered missing image URLs, duplicate references, and oversized images.
  • Added tests for the fixture data and expected behavior.
  • Documented the image mapping and what's outside the scope of the connector.

No real product images or API calls are involved.

Testing

  • node --test tests/woocommerce-product-image-fixture.test.js
  • All 6 tests passing.

Closes #410

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. Thank you.
Posted by the CLA Assistant Lite bot.

@adrianpascualdev

Copy link
Copy Markdown
Author

I have read the CLA document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 19, 2026

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for keeping this fixture synthetic and clearly separating it from live media synchronization. I checked head 3bf6df1 and ran node --test tests/woocommerce-product-image-fixture.test.js: all six tests passed. Before merge, please finish the truncated final sentence in tests/fixtures/woocommerce/README.md and run the repository formatting check on the three new files. CI currently has no completed validation on this contributor head, so the required checks still need to pass. No live image downloads are needed.

@adrianpascualdev

Copy link
Copy Markdown
Author

Thanks for the review! I've completed the last sentence in the README and checked all three new files with Prettier. The six fixture tests are passing as well

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for completing the README. I verified the update at 03befe4 and reran the fixture suite: all six tests pass. The synthetic metadata-only scope still matches #410. GitHub currently reports only the CLA check on this head, so required CI validation is still outstanding before approval; I have not triggered a workflow run.

@adrianpascualdev

Copy link
Copy Markdown
Author

Thanks for checking the update! Could a maintainer approve the pending CI workflows when possible?

@sridharkalaibala

Copy link
Copy Markdown
Contributor

Thanks for the follow-up. I confirmed that CI and CodeQL are awaiting maintainer workflow approval on the current commit. The six local fixture tests passed. I have flagged the approval request to the repository owner; I cannot authorize workflow execution under the current repository instructions. No further fixture changes are requested at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WooCommerce connector: add product image sync fixture

2 participants