@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.
- package/dist/cli.js +13 -9
- 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
|
|
52095
|
-
|
|
52096
|
-
|
|
52097
|
-
|
|
52098
|
-
|
|
52099
|
-
|
|
52100
|
-
|
|
52101
|
-
|
|
52102
|
-
|
|
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
|
+
"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",
|