fix(web-probe): widen long session DOM samples (#760)
Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
@@ -1670,7 +1670,7 @@ async function sampleOnePage(targetPage, { reason, groupSeq, pageRole, targetPag
|
||||
const messageSelector = 'article.message-card, .message-card[data-message-id], article[data-message-id]';
|
||||
const traceSelector = '[data-testid*="trace" i], [class*="trace" i], [data-trace-id], [data-testid*="event" i]';
|
||||
const diagnosticSelector = '.api-error-diagnostic, [class*="api-error-diagnostic" i], [class*="message-diagnostic" i], [class*="projection-diagnostic" i], [data-testid="api-error-diagnostic" i], [data-testid="error-diagnostic" i], [data-testid*="diagnostic" i], [role="alert"], [aria-live="assertive"]';
|
||||
const messages = summarizeMessages(messageSelector, 20);
|
||||
const messages = summarizeMessages(messageSelector, 80);
|
||||
const traceRows = summarize(traceSelector, 30);
|
||||
const loadings = collectLoadingNodes();
|
||||
const sessionRail = collectSessionRailTitles();
|
||||
@@ -1724,7 +1724,7 @@ async function sampleOnePage(targetPage, { reason, groupSeq, pageRole, targetPag
|
||||
text,
|
||||
rect: { x: Math.round(rect.x), y: Math.round(rect.y), width: Math.round(rect.width), height: Math.round(rect.height) },
|
||||
};
|
||||
}).slice(-20);
|
||||
}).slice(-80);
|
||||
const active = document.activeElement;
|
||||
return {
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user