Skip to content

Commit ef3c512

Browse files
authored
fix: align Maestro assertVisible timeout (#653)
1 parent 4d016db commit ef3c512

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/compat/maestro/__tests__/replay-flow.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ env:
6767
['type', ['Ada Lovelace']],
6868
[
6969
'__maestroAssertVisible',
70-
['label="Checkout form" || text="Checkout form" || id="Checkout form"', '5000'],
70+
['label="Checkout form" || text="Checkout form" || id="Checkout form"', '7000'],
7171
],
7272
[
7373
'__maestroAssertNotVisible',
@@ -368,7 +368,7 @@ test('parseMaestroReplayFlow preserves selector state and absolute swipe command
368368
assert.deepEqual(
369369
parsed.actions.map((entry) => [entry.command, entry.positionals]),
370370
[
371-
['__maestroAssertVisible', ['id="shipping-pickup" selected="true"', '5000']],
371+
['__maestroAssertVisible', ['id="shipping-pickup" selected="true"', '7000']],
372372
['swipe', ['100', '500', '100', '200', '300']],
373373
],
374374
);
@@ -628,7 +628,7 @@ test('parseMaestroReplayFlow keeps retry commands for runtime evaluation', () =>
628628
control.actions.map((entry) => [entry.command, entry.positionals, entry.flags]),
629629
[
630630
['open', ['example://details'], {}],
631-
['__maestroAssertVisible', ['label="Article" || text="Article" || id="Article"', '5000'], {}],
631+
['__maestroAssertVisible', ['label="Article" || text="Article" || id="Article"', '7000'], {}],
632632
],
633633
);
634634
});

src/compat/maestro/command-mapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const MAP_COMMAND_HANDLERS: Record<string, MaestroCommandHandler> = {
5858
assertVisible: ({ value, context, name }) => [
5959
action(MAESTRO_RUNTIME_COMMAND.assertVisible, [
6060
maestroSelector(value, name, [], context),
61-
'5000',
61+
'7000',
6262
]),
6363
],
6464
assertNotVisible: ({ value, context, name }) => [

src/compat/maestro/runtime-assertions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function invokeMaestroAssertVisible(params: {
4848
}): Promise<DaemonResponse> {
4949
const args = readVisibilityAssertionArgs(params.positionals, {
5050
command: 'assertVisible',
51-
defaultTimeoutMs: 5000,
51+
defaultTimeoutMs: 7000,
5252
});
5353
if (!args.ok) return args.response;
5454

0 commit comments

Comments
 (0)