From adfe361bb797f57ba15d1a2b470619d08b564e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 1 Jun 2026 17:06:03 -0500 Subject: [PATCH] fix: align Maestro assertVisible timeout --- src/compat/maestro/__tests__/replay-flow.test.ts | 6 +++--- src/compat/maestro/command-mapper.ts | 2 +- src/compat/maestro/runtime-assertions.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compat/maestro/__tests__/replay-flow.test.ts b/src/compat/maestro/__tests__/replay-flow.test.ts index 34cbd9834..8529fbcde 100644 --- a/src/compat/maestro/__tests__/replay-flow.test.ts +++ b/src/compat/maestro/__tests__/replay-flow.test.ts @@ -67,7 +67,7 @@ env: ['type', ['Ada Lovelace']], [ '__maestroAssertVisible', - ['label="Checkout form" || text="Checkout form" || id="Checkout form"', '5000'], + ['label="Checkout form" || text="Checkout form" || id="Checkout form"', '7000'], ], [ '__maestroAssertNotVisible', @@ -368,7 +368,7 @@ test('parseMaestroReplayFlow preserves selector state and absolute swipe command assert.deepEqual( parsed.actions.map((entry) => [entry.command, entry.positionals]), [ - ['__maestroAssertVisible', ['id="shipping-pickup" selected="true"', '5000']], + ['__maestroAssertVisible', ['id="shipping-pickup" selected="true"', '7000']], ['swipe', ['100', '500', '100', '200', '300']], ], ); @@ -628,7 +628,7 @@ test('parseMaestroReplayFlow keeps retry commands for runtime evaluation', () => control.actions.map((entry) => [entry.command, entry.positionals, entry.flags]), [ ['open', ['example://details'], {}], - ['__maestroAssertVisible', ['label="Article" || text="Article" || id="Article"', '5000'], {}], + ['__maestroAssertVisible', ['label="Article" || text="Article" || id="Article"', '7000'], {}], ], ); }); diff --git a/src/compat/maestro/command-mapper.ts b/src/compat/maestro/command-mapper.ts index 484f8d4d2..23d53eda8 100644 --- a/src/compat/maestro/command-mapper.ts +++ b/src/compat/maestro/command-mapper.ts @@ -58,7 +58,7 @@ const MAP_COMMAND_HANDLERS: Record = { assertVisible: ({ value, context, name }) => [ action(MAESTRO_RUNTIME_COMMAND.assertVisible, [ maestroSelector(value, name, [], context), - '5000', + '7000', ]), ], assertNotVisible: ({ value, context, name }) => [ diff --git a/src/compat/maestro/runtime-assertions.ts b/src/compat/maestro/runtime-assertions.ts index b96b49b8f..793205e75 100644 --- a/src/compat/maestro/runtime-assertions.ts +++ b/src/compat/maestro/runtime-assertions.ts @@ -48,7 +48,7 @@ export async function invokeMaestroAssertVisible(params: { }): Promise { const args = readVisibilityAssertionArgs(params.positionals, { command: 'assertVisible', - defaultTimeoutMs: 5000, + defaultTimeoutMs: 7000, }); if (!args.ok) return args.response;