You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the viewport is changed, the browser fails to re-calculate the
proper image size. With that new stabilization we ensure images are
stable with `viewports` option.
Copy file name to clipboardExpand all lines: packages/playwright/docs/index.mdx
+1
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,7 @@ export default defineConfig({
239
239
-`options.stabilize.ariaBusy`: Wait for the `aria-busy` attribute to be removed from the document. Default to `true`.
240
240
-`options.stabilize.fonts`: Wait for fonts to be loaded. Default to `true`.
241
241
-`options.stabilize.images`: Wait for images to be loaded. Default to `true`.
242
+
-`options.stabilize.imageSizes`: Stabilize all image sizes to avoid glitches. Default to `true`.
242
243
-`options.beforeScreenshot`: Run a function before taking the screenshot. When using viewports, this function will run before taking sreenshots on each viewport.
243
244
-`options.afterScreenshot`: Run a function after taking the screenshot. When using viewports, this function will run after taking sreenshots on each viewport.
Copy file name to clipboardExpand all lines: packages/puppeteer/docs/index.mdx
+1
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ Screenshots are stored in `screenshots/argos` folder, relative to current direct
62
62
-`options.stabilize.ariaBusy`: Wait for the `aria-busy` attribute to be removed from the document. Default to `true`.
63
63
-`options.stabilize.fonts`: Wait for fonts to be loaded. Default to `true`.
64
64
-`options.stabilize.images`: Wait for images to be loaded. Default to `true`.
65
+
-`options.stabilize.imageSizes`: Stabilize all image sizes to avoid glitches. Default to `true`.
65
66
66
67
Unlike [Puppeteer's `screenshot` method](https://playwright.dev/docs/api/class-page#page-screenshot), `argosScreenshot` set `fullPage` option to `true` by default. Feel free to override this option if you prefer partial screenshots of your pages.
0 commit comments