Skip to content

feat: per-combination virtual flag & downloadable file page objects - #1121

Open
PrestaEdit wants to merge 1 commit into
PrestaShop:mainfrom
PrestaEdit:feat/per-combination-virtual
Open

feat: per-combination virtual flag & downloadable file page objects#1121
PrestaEdit wants to merge 1 commit into
PrestaShop:mainfrom
PrestaEdit:feat/per-combination-virtual

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor

Companion library changes for PrestaShop/PrestaShop#41825 (per-combination virtual flag + downloadable file).

What

  • BO products / combinations edit modal:
    • `setCombinationIsVirtual(page, boolean)`
    • `setCombinationVirtualProductFile(page, filePath)`
    • `getCombinationVirtualProductFileName(page)`
  • FO product page (base classic, inherited by hummingbird and older themes):
    • `getProductDownloadFileName(page)` — returns the downloadable filename shown for the current combination/product, empty when none.
  • Bump to 0.0.13.

Why

PrestaShop/PrestaShop#41825 adds an `is_virtual` flag and a downloadable file to each combination. The e2e test that ships with that PR (`tests/UI/campaigns/functional/BO/03_catalog/01_products/23_virtualCombinations/01_perCombinationVirtual.ts`) needs these page-object methods. They don't exist yet — that's what fails `TypeScript Check` on the PR.

FO selector caveat

`getProductDownloadFileName` targets `div.product-download-file, .product__additional-info .product-download__filename` and returns `''` when neither node is found. The selectors match the current classic / hummingbird themes; if the theme templates land under different classes, the selector should be tightened together with the theme PR.

🤖 Generated with Claude Code

Adds page-object methods needed for PrestaShop core PR #41825 (per-combination
virtual products):

BO products / combinations edit modal
  - setCombinationIsVirtual(page, boolean)
  - setCombinationVirtualProductFile(page, filePath)
  - getCombinationVirtualProductFileName(page)

FO product page (base classic, inherited by hummingbird and older themes)
  - getProductDownloadFileName(page): returns the downloadable filename
    shown for the currently selected combination/product, empty when none

Bump version to 0.0.13.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@PrestaEdit
PrestaEdit requested a review from a team as a code owner September 7, 2026 13:29
@github-project-automation github-project-automation Bot moved this to Ready for review in PR Dashboard Sep 7, 2026
PrestaEdit added a commit to PrestaEdit/PrestaShop that referenced this pull request Sep 7, 2026
Points tests/UI to the PrestaEdit fork branch of ui-testing-library that
exposes the new combination page-object methods and drops the temporary
@ts-nocheck on the per-combination virtual e2e.

Companion PR: PrestaShop/ui-testing-library#1121. Once merged and
published, switch the dependency back to
https://github.com/PrestaShop/ui-testing-library#main.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
PrestaEdit added a commit to PrestaEdit/PrestaShop that referenced this pull request Sep 7, 2026
Points tests/UI to the PrestaEdit fork branch of ui-testing-library that
exposes the new combination page-object methods and drops the temporary
@ts-nocheck on the per-combination virtual e2e.

Companion PR: PrestaShop/ui-testing-library#1121. Once merged and
published, switch the dependency back to
https://github.com/PrestaShop/ui-testing-library#main.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

2 participants