@resolveio/server-lib 22.3.235 → 22.3.236

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.235",
3
+ "version": "22.3.236",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -3505,6 +3505,15 @@ function buildResolveIORunnerQaWorkflowProbeScript() {
3505
3505
  ' return payload;',
3506
3506
  '}'
3507
3507
  ], __read(buildResolveIOPartInventorySnapshotProofScriptLines()), false), [
3508
+ 'function specializedWorkflowProofsEnabled() {',
3509
+ ' const flag = String(process.env.RESOLVEIO_SUPPORT_QA_AUTO_SPECIALIZED_PROOFS || process.env.RESOLVEIO_RUNNER_QA_AUTO_SPECIALIZED_PROOFS || "").trim().toLowerCase();',
3510
+ ' if (/^(1|true|yes|on)$/.test(flag)) return true;',
3511
+ ' if (/^(0|false|no|off)$/.test(flag)) return false;',
3512
+ ' const matrix = readJson(matrixPath) || {};',
3513
+ ' const row = activeMatrixRow() || {};',
3514
+ ' const proofMode = String(row.proof_mode || row.proofMode || matrix.proof_mode || matrix.proofMode || "").trim().toLowerCase();',
3515
+ ' return row.allow_specialized_proof === true || matrix.allow_specialized_proofs === true || proofMode === "specialized";',
3516
+ '}',
3508
3517
  'function updateMatrix(status, screenshotPath, caption, assertion) {',
3509
3518
  ' const matrix = readJson(matrixPath) || { status: "started", rows: [] };',
3510
3519
  ' const routeProbePassed = status === "route_probe_pass" || status === "pass";',
@@ -3543,18 +3552,23 @@ function buildResolveIORunnerQaWorkflowProbeScript() {
3543
3552
  ' const caption = `Workflow route ready: ${targetRoute} loaded in authenticated local QA with live seeded data available.`;',
3544
3553
  ' await page.screenshot({ path: passScreenshotPath, type: "jpeg", quality: 82, fullPage: false });',
3545
3554
  ' updateMatrix("route_probe_pass", passScreenshotPath, caption, "Authenticated customer workflow route loaded; deeper row-specific UI/data proof still required.");',
3546
- ' let specializedProof = await runPricingImportProof(page, summary);',
3547
- ' let specializedProofPath = specializedProof ? path.join(artifactDir, "qa-pricing-import-proof.json") : "";',
3548
- ' let specializedProofLabel = specializedProof ? "Pricing import workbook business proof" : "";',
3549
- ' if (!specializedProof) {',
3550
- ' specializedProof = await runPartInventorySnapshotMethodProof(page, summary, auth);',
3551
- ' specializedProofPath = specializedProof ? path.join(artifactDir, "qa-part-inventory-snapshot-proof.json") : "";',
3552
- ' specializedProofLabel = specializedProof ? "Part inventory snapshot report method business proof" : "";',
3553
- ' }',
3554
- ' if (!specializedProof) {',
3555
- ' specializedProof = await runAssetLocationRowProof(page, summary);',
3556
- ' specializedProofPath = specializedProof ? path.join(artifactDir, "qa-asset-location-proof.json") : "";',
3557
- ' specializedProofLabel = specializedProof ? "Asset location list/detail/edit business proof" : "";',
3555
+ ' let specializedProof = null;',
3556
+ ' let specializedProofPath = "";',
3557
+ ' let specializedProofLabel = "";',
3558
+ ' if (specializedWorkflowProofsEnabled()) {',
3559
+ ' specializedProof = await runPricingImportProof(page, summary);',
3560
+ ' specializedProofPath = specializedProof ? path.join(artifactDir, "qa-pricing-import-proof.json") : "";',
3561
+ ' specializedProofLabel = specializedProof ? "Pricing import workbook business proof" : "";',
3562
+ ' if (!specializedProof) {',
3563
+ ' specializedProof = await runPartInventorySnapshotMethodProof(page, summary, auth);',
3564
+ ' specializedProofPath = specializedProof ? path.join(artifactDir, "qa-part-inventory-snapshot-proof.json") : "";',
3565
+ ' specializedProofLabel = specializedProof ? "Part inventory snapshot report method business proof" : "";',
3566
+ ' }',
3567
+ ' if (!specializedProof) {',
3568
+ ' specializedProof = await runAssetLocationRowProof(page, summary);',
3569
+ ' specializedProofPath = specializedProof ? path.join(artifactDir, "qa-asset-location-proof.json") : "";',
3570
+ ' specializedProofLabel = specializedProof ? "Asset location list/detail/edit business proof" : "";',
3571
+ ' }',
3558
3572
  ' }',
3559
3573
  ' if (specializedProof && specializedProof.status !== "pass") {',
3560
3574
  ' const result = { status: "failed", clientUrl, serverUrl, targetRoute, screenshot: passScreenshotPath, caption: `${specializedProofLabel || "Specialized business proof"} failed; see ${path.basename(specializedProofPath)}.`, page: summary, matrix: matrixPath, specializedProof: specializedProofPath };',