Skip to content

feat(checkout): support auto-confirmed terms on checkout confirm page#659

Open
ngocblue wants to merge 1 commit into
trunkfrom
test/update-confirm-terms-and-condition-task
Open

feat(checkout): support auto-confirmed terms on checkout confirm page#659
ngocblue wants to merge 1 commit into
trunkfrom
test/update-confirm-terms-and-condition-task

Conversation

@ngocblue

@ngocblue ngocblue commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Why

From v6.8 (V6_8_0_0) the checkout confirm page no longer shows a mandatory T&C checkbox by default — it's replaced by an auto-confirm summary line. The shared ConfirmTermsAndConditions task pressed a checkbox that no longer exists, which broke every checkout spec on the next-major run.

What

  • ConfirmTermsAndConditions now presses/asserts the checkbox only when it's visible, otherwise it no-ops — so it works unchanged on lower versions and no-ops on the v6.8 default.
  • Add CheckoutConfirm.termsAutoConfirmedText locator (.checkout-confirm-tos-information).
  • Add autoConfirmTermsText snippet (en/de) so specs can assert the new summary text.

Consumed by a platform acceptance spec verifying the v6.8 behaviour (shopware/shopware#18176).

Verified

Ran every spec that calls ConfirmTermsAndConditions() against both versions — all green:

  • v6.8.0 (FEATURE_ALL=major): checkbox absent → task no-ops, checkout completes.
  • Current / lower version (V6_8_0_0 off): checkbox present → task presses and asserts it as before.

So the change is backward compatible: no behavioural difference on lower versions, and the next-major checkout specs pass again.

@ngocblue ngocblue requested a review from a team as a code owner July 14, 2026 07:54
@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/shopware/acceptance-test-suite/@shopware-ag/acceptance-test-suite@659

commit: 52e0638

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.

Stabilize acceptance test: Product/ProductImagesInTheStorefront.spec.ts (major)

1 participant