fix: expand workbench session rail in web probe
This commit is contained in:
@@ -57,9 +57,10 @@ const runtimeAlerts = buildRuntimeAlerts(samples, control, network, consoleEvent
|
||||
const apiDomLag = buildApiDomLagReport(samples, network);
|
||||
const projectManagement = buildProjectManagementReport(samples, control, network, pagePerformance, projectManagementConfig);
|
||||
const runnerErrors = errors.slice(-8).map((item) => {
|
||||
const attempts = Array.isArray(item.error?.attempts) ? item.error.attempts : [];
|
||||
const details = item.error?.details && typeof item.error.details === "object" ? item.error.details : {};
|
||||
const attempts = Array.isArray(item.error?.attempts) ? item.error.attempts : Array.isArray(details.attempts) ? details.attempts : [];
|
||||
const lastAttempt = attempts.length > 0 ? attempts[attempts.length - 1] : null;
|
||||
const readiness = lastAttempt?.readiness || item.error?.navigationReadiness || null;
|
||||
const readiness = lastAttempt?.readiness || lastAttempt?.readinessBeforeClick || details.readinessBeforeClick || details.readinessAfterWait || item.error?.navigationReadiness || null;
|
||||
const readinessSnapshot = readiness?.snapshot || readiness;
|
||||
return {
|
||||
ts: item.ts ?? null,
|
||||
@@ -78,7 +79,13 @@ const runnerErrors = errors.slice(-8).map((item) => {
|
||||
path: readinessSnapshot.path ?? null,
|
||||
readyState: readinessSnapshot.readyState ?? null,
|
||||
workbenchShellVisible: readinessSnapshot.workbenchShellVisible === true,
|
||||
sessionCreatePresent: readinessSnapshot.sessionCreatePresent === true,
|
||||
sessionCreateVisible: readinessSnapshot.sessionCreateVisible === true,
|
||||
sessionRailPresent: readinessSnapshot.sessionRailPresent === true,
|
||||
sessionRailCollapsed: readinessSnapshot.sessionRailCollapsed ?? null,
|
||||
sessionCollapseTogglePresent: readinessSnapshot.sessionCollapseTogglePresent === true,
|
||||
sessionCollapseToggleVisible: readinessSnapshot.sessionCollapseToggleVisible === true,
|
||||
sessionCollapseToggleExpanded: readinessSnapshot.sessionCollapseToggleExpanded ?? null,
|
||||
commandInputPresent: readinessSnapshot.commandInputPresent === true,
|
||||
activeTabPresent: readinessSnapshot.activeTabPresent === true,
|
||||
warningPresent: readinessSnapshot.warningPresent === true,
|
||||
|
||||
Reference in New Issue
Block a user