diff --git a/tools/e2e/63-render-layers.mjs b/tools/e2e/63-render-layers.mjs index d249a7bb..24477932 100644 --- a/tools/e2e/63-render-layers.mjs +++ b/tools/e2e/63-render-layers.mjs @@ -222,7 +222,11 @@ export async function renderLayers(t) { await play(); await sleep(400); const switched = await picture(); - const named = (await json('__gm.world()'))?.log.slice(-2) ?? []; + // Searched, not taken from the end: in the full suite behaviors left by earlier modules log + // after this OnStart. Its two lines come from one exec chain, so they stand together. + const log = (await json('__gm.world()'))?.log ?? []; + const at = log.findIndex((line, i) => line === 'UI' && log[i + 1] === '1'); + const named = at < 0 ? log.slice(-6) : log.slice(at, at + 2); await stop(); await mutate(` const p = __gm.state.project;