Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: fix android tests after #12220 (#12535)

Max Schmitt5fd43edcbb1f
diff --git a/packages/playwright-core/src/client/android.ts b/packages/playwright-core/src/client/android.ts
index a929e8f37b..360a25a09e 100644
--- a/packages/playwright-core/src/client/android.ts
+++ b/packages/playwright-core/src/client/android.ts
@@ -47,7 +47,7 @@ export class Android extends ChannelOwner<channels.AndroidChannel> implements ap
this._channel.setDefaultTimeoutNoReply({ timeout });
}
- async devices(options: { port?: number }): Promise<AndroidDevice[]> {
+ async devices(options: { port?: number } = {}): Promise<AndroidDevice[]> {
const { devices } = await this._channel.devices(options);
return devices.map(d => AndroidDevice.from(d));
}