From ab7e0b90d48d6c19fd026ea765646c762f4dfa51 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Tue, 3 Nov 2026 01:42:52 +0100 Subject: [PATCH] test: list each failed step of an ios flow with its error from maestro 2's command log --- scripts/e2e/failed-steps.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/e2e/failed-steps.mjs b/scripts/e2e/failed-steps.mjs index ba300dca..2a194d34 100644 --- a/scripts/e2e/failed-steps.mjs +++ b/scripts/e2e/failed-steps.mjs @@ -43,14 +43,16 @@ function findHierarchy(obj, seen = new Set()) { return null; } -for (const file of walkFiles(root).filter((f) => /commands-.*\.json$/.test(f))) { +// Maestro 1 writes commands-.json, Maestro 2 /commands.json. +for (const file of walkFiles(root).filter((f) => /(^|[\\/])commands(-[^\\/]*)?\.json$/.test(f))) { let data; try { data = JSON.parse(fs.readFileSync(file, 'utf8')); } catch { continue; } - out.push(`== ${path.basename(file)}`); + const base = path.basename(file); + out.push(`== ${base === 'commands.json' ? `${path.basename(path.dirname(file))} / ${base}` : base}`); for (const entry of Array.isArray(data) ? data : []) { const command = entry.command || {}; const type = Object.keys(command).find((k) => command[k]) || '?';