test: separate dom-only workbench report
This commit is contained in:
@@ -1463,9 +1463,7 @@ async function validateDevCloudWorkbenchLiveReport(report, label, raw) {
|
||||
}
|
||||
|
||||
for (const requiredCheck of [
|
||||
"live-runtime-current-main",
|
||||
"live-http-html",
|
||||
"live-web-assets-current-main",
|
||||
"live-browser-dom",
|
||||
"live-api-runtime-readiness",
|
||||
"live-code-agent-browser-journey"
|
||||
@@ -1473,13 +1471,22 @@ async function validateDevCloudWorkbenchLiveReport(report, label, raw) {
|
||||
assert.ok(checks.has(requiredCheck), `${label}.checks missing ${requiredCheck}`);
|
||||
}
|
||||
|
||||
assertDevCloudWorkbenchIdentityChecks(
|
||||
report,
|
||||
label,
|
||||
checks.get("live-runtime-current-main"),
|
||||
checks.get("live-web-assets-current-main"),
|
||||
{ requirePass: report.status === "pass" }
|
||||
);
|
||||
const hasDeploymentIdentityChecks =
|
||||
checks.has("live-runtime-current-main") ||
|
||||
checks.has("live-web-assets-current-main") ||
|
||||
Object.hasOwn(report, "deploymentIdentity") ||
|
||||
Object.hasOwn(report, "webAssetIdentity");
|
||||
if (hasDeploymentIdentityChecks || report.status === "pass") {
|
||||
assert.ok(checks.has("live-runtime-current-main"), `${label}.checks missing live-runtime-current-main`);
|
||||
assert.ok(checks.has("live-web-assets-current-main"), `${label}.checks missing live-web-assets-current-main`);
|
||||
assertDevCloudWorkbenchIdentityChecks(
|
||||
report,
|
||||
label,
|
||||
checks.get("live-runtime-current-main"),
|
||||
checks.get("live-web-assets-current-main"),
|
||||
{ requirePass: report.status === "pass" }
|
||||
);
|
||||
}
|
||||
|
||||
const httpCheck = checks.get("live-http-html");
|
||||
assert.equal(httpCheck.status, "pass", `${label}.live-http-html.status`);
|
||||
|
||||
Reference in New Issue
Block a user