xk6-browser icon indicating copy to clipboard operation
xk6-browser copied to clipboard

`deviceScaleFactor` option in `newContext` on `Browser` class isn't affecting the images

Open ankur22 opened this issue 2 years ago • 1 comments

Tested against: dbede120c63df43995813a847a25b0e66e289592

The result of deviceScaleFactor of 1 should result in a blurry image as shown here:

[PW deviceScaleFactor set to 1] Screenshot 2022-07-05 at 16 13 02

And when it is set to 2, then it should look like this:

[PW deviceScaleFactor set to 2] Screenshot 2022-07-05 at 16 12 50

In xk6-browser the result of deviceScaleFactor is always the same regardless of the value set (the blurry image).

ankur22 avatar Jul 05 '22 15:07 ankur22

This works with the default BrowserContext, but it doesn't work when a second context is created.

ankur22 avatar Jul 05 '22 16:07 ankur22