Description
Is your feature request related to a problem? Please describe.
Playwright has experimental support for Android: https://playwright.dev/docs/api/class-android
Cloud providers such as BrowserStack provide real Android device support for Playwright: https://www.browserstack.com/blog/introducing-android-playwright/
Users should be able to test on mobile devices.
Describe the solution you'd like
Extend the Jest runner to accept a real Android device
Describe alternatives you've considered
n/a
Additional context
It seems like this function handles connection to the remote browser. We should add a check to see if it should be called instead on the _android
class. Here is a snippet of how we initialize an Android connection with the playwright runner:
const { _android } = require('playwright');
...
const device = await _android.connect(`wss://cdp.browserstack.com/playwright?caps=${encodeURIComponent(JSON.stringify(caps))}`);