@decocms/parity 0.17.3 → 0.17.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +13 -9
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -52091,15 +52091,19 @@ async function flowPurchaseJourney(ctx) {
52091
52091
  if (expectedProductTitle && cartOpenMethod !== "failed") {
52092
52092
  let v = await validateCartContainsTitle(page, expectedProductTitle, ctx);
52093
52093
  if (cartOpenMethod === "already-open" && !v.found) {
52094
- const triggerHit = await firstVisibleLocator(page, selFor(ctx, "minicartTrigger"));
52095
- if (triggerHit) {
52096
- dlog2(ctx, "step 7: already-open drawer empty — clicking minicartTrigger to activate on-demand query");
52097
- miniHit = triggerHit;
52098
- await triggerHit.locator.click({ timeout: 3000 }).catch(() => {
52099
- return;
52100
- });
52101
- await waitForCartHydration(page);
52102
- v = await validateCartContainsTitle(page, expectedProductTitle, ctx);
52094
+ const triggerSels = selFor(ctx, "minicartTrigger");
52095
+ for (const sel of triggerSels) {
52096
+ const el = page.locator(sel).first();
52097
+ if (await el.count()) {
52098
+ dlog2(ctx, "step 7: already-open drawer empty — force-clicking minicartTrigger (collapsed inside daisyUI drawer-content)");
52099
+ miniHit = { locator: el, selector: sel };
52100
+ await el.click({ force: true, timeout: 3000 }).catch(() => {
52101
+ return;
52102
+ });
52103
+ await waitForCartHydration(page);
52104
+ v = await validateCartContainsTitle(page, expectedProductTitle, ctx);
52105
+ break;
52106
+ }
52103
52107
  }
52104
52108
  }
52105
52109
  let reasonText;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/parity",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "E2E parity validator for site migrations. Compares prod vs cand and reports UI, functional, SEO, visual, and Web Vitals deltas with an LLM-ranked HTML report.",
5
5
  "type": "module",
6
6
  "license": "MIT",