Skip to content

Commit 61e45bc

Browse files
committed
test(org): report every failed route in a walk
The 2,000-character limit cut a persona's failures after about four routes, hiding any beyond settle.
1 parent 0a4901f commit 61e45bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • apps/sim/scripts/org-redesign-e2e/checks

‎apps/sim/scripts/org-redesign-e2e/checks/walk.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ export async function fullPageScreenshot(page: Page, path: string, viewport: Vie
9595
if (grows) await page.setViewportSize({ width: viewport.width, height: viewport.height })
9696
}
9797

98+
/** A persona's walk lists every route that failed, which the usual limit cut off after four. */
99+
const WALK_ERROR_LIMIT = 16_000
100+
98101
async function walkOne(persona: Persona, viewport: Viewport, theme: Theme) {
99102
const name = `${persona.key} ${viewport.name} ${theme}: every route renders healthy`
100103
const started = performance.now()
@@ -157,7 +160,7 @@ async function walkOne(persona: Persona, viewport: Viewport, theme: Theme) {
157160
)
158161
record(name, 'Route walk', started)
159162
} catch (error) {
160-
record(name, 'Route walk', started, truncate(getErrorMessage(error), 2000))
163+
record(name, 'Route walk', started, truncate(getErrorMessage(error), WALK_ERROR_LIMIT))
161164
}
162165
}
163166

0 commit comments

Comments
 (0)