Skip to content

Add page objects for virtual_combinations per-combination files#1047

Open
PrestaEdit wants to merge 3 commits into
PrestaShop:mainfrom
PrestaEdit:feat-virtual-combinations-page-objects
Open

Add page objects for virtual_combinations per-combination files#1047
PrestaEdit wants to merge 3 commits into
PrestaShop:mainfrom
PrestaEdit:feat-virtual-combinations-page-objects

Conversation

@PrestaEdit

Copy link
Copy Markdown
Contributor

Companion to PrestaShop/PrestaShop#41825 (new virtual_combinations product type, with one downloadable file per combination).

Adds the page-object methods used by the new core UI campaign 23_virtualCombinations:

  • boProductsPage.virtualCombinationsProductDescription
  • tabCombinations.setCombinationVirtualProductFile() / getCombinationVirtualProductFileName()
  • FO product.getProductDownloadFileName()

FakerProduct.type is already typed as string, so no faker change was needed.

Note: some selectors are marked // TODO(selector) — the combination-modal virtual-file ids are inferred from the core CombinationFormType (which embeds VirtualProductFileType as child virtual_product_file, #combination_form_* prefix) and the FO download selector needs confirmation against the rendered theme DOM. tsc --noEmit and ESLint pass.

🤖 Generated with Claude Code

…files

Companion to PrestaShop/PrestaShop#41825. Adds:
- virtualCombinationsProductDescription on the BO Products page
- setCombinationVirtualProductFile / getCombinationVirtualProductFileName on the combinations tab
- getProductDownloadFileName on the FO product page

Some selectors are marked TODO and need confirmation against the rendered DOM.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PrestaEdit and others added 2 commits June 25, 2026 16:17
…ot guessed

The combination-modal field ids are generated deterministically by Symfony from the
core form structure (combination_form root + embedded VirtualProductFileType); only
the FO download selector remains to confirm against the rendered theme.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Companion to PrestaShop/PrestaShop#41825 (design pivot, discussion #41826):
remove the dropped virtual_combinations product-type description, add
setCombinationIsVirtual for the per-combination virtual switch; the
per-combination file methods are unchanged (file decoupled from the flag).

Co-Authored-By: Claude Opus 4.8 <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