diff --git a/packages/zui-player/helpers/test-app.ts b/packages/zui-player/helpers/test-app.ts index c0472b3a43..a96ea85b6b 100644 --- a/packages/zui-player/helpers/test-app.ts +++ b/packages/zui-player/helpers/test-app.ts @@ -172,8 +172,8 @@ export default class TestApp { return this.locate(role, name).click({ button: 'right' }); } - async attached(role: Role | RegExp, name?: string) { - return this.locate(role, name).waitFor(); + async attached(role: Role | RegExp, name?: string, timeout?: number) { + return this.locate(role, name).waitFor({ timeout: timeout }); } async detached(role: Role | RegExp, name?: string) {