@reshotdev/screenshot 0.0.1-beta.23 → 0.0.1-beta.24
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 +1 -1
- package/src/lib/certification.js +9 -3
package/package.json
CHANGED
package/src/lib/certification.js
CHANGED
|
@@ -464,11 +464,17 @@ async function runDoctorTarget(options = {}) {
|
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
|
|
467
|
+
// A strict app-owned readiness CONTRACT is only required for the "certified"
|
|
468
|
+
// tier. For self-serve/local (custom) targets, the actual page-readiness
|
|
469
|
+
// audit below is what matters — don't fail the scenario (with no reason)
|
|
470
|
+
// just because it lacks a deterministic ready contract (audit run-18 R18-1).
|
|
471
|
+
const requireReadyContract = target.tier === "certified";
|
|
472
|
+
let readyContractOk = !requireReadyContract || hasDeterministicReadyContract(scenario);
|
|
468
473
|
let contractFailure = null;
|
|
469
|
-
if (
|
|
474
|
+
if (requireReadyContract && !hasDeterministicReadyContract(scenario)) {
|
|
475
|
+
readyContractOk = false;
|
|
470
476
|
contractFailure = "Scenario is missing an app-owned readiness contract.";
|
|
471
|
-
} else if (
|
|
477
|
+
} else if (requireReadyContract && usesSleepOnlyReadiness(scenario)) {
|
|
472
478
|
readyContractOk = false;
|
|
473
479
|
contractFailure = "Scenario relies on waits without a deterministic ready contract.";
|
|
474
480
|
}
|