playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Bug]: toHaveScreenshot repeats the initial viewport on Android using Browserstack

Open l0king-alt opened this issue 7 months ago • 0 comments

Version

1.52.0 (latest)

Steps to reproduce

  • Clone the Browserstack sample repo: https://github.com/browserstack/node-js-playwright-browserstack

  • In "browserstack.yml":

    • Add your Browserstack credentials
    • In the list of platforms, add an android device:
      • browserName: chrome osVersion: 14.0 deviceName: Samsung Galaxy S24
  • In one of the sample tests, add a test that utilizes "await expect(page).toHaveScreenshot('test.png', { fullPage: true });" on any given page that requires scrolling. Use this page: https://playwright.dev/community/welcome

Expected behavior

I would expect the same kind of result as when running the same test on Windows -> Chrome:

Image

The entire page is captured even if scroll is necessary.

Actual behavior

If you run the sample provided above, the android image should come out like this (https://playwright.dev/community/welcome):

Image

As shown in the image, the initial viewport is repeated over and over again. This does not happen when running the same test using Chrome on Windows.

Additional context

No response

Environment

Node: 20.8.0
NPM: 10.1.0

Windows 11, 24H2

l0king-alt avatar Jun 05 '25 14:06 l0king-alt