Skip to content

Seems 9.2.0 version broke screenshot of fixed positioned elements again #1146

@delagen

Description

@delagen

Environment (please complete the following information):

  • Node.js version: any
  • NPM version: any
  • Browser name and version: Chrome 143
  • Platform name and version: Linux
  • WebdriverIO version: 9.27.0
  • @wdio/visual-service ~9.2.0

Config of WebdriverIO + @wdio/visual-service

services: [
        ['visual', {
            autoSaveBaseline: false,
            baselineFolder: resolve(currentPath, 'base'),
            formatImageName: '{tag}',
            screenshotPath: resolve(currentPath, 'out'),
        } satisfies VisualServiceOptions],
    ],

Describe the bug
Capturing of fixed positioned elements saves rectangle of background under them (as was in #919), scrollbars are missing in screenshot

Scrollbars:

9.1.6
Image
9.2.0
Image

Overlay:
9.1.6
Image
9.2.0
Image

To Reproduce
I used
toMatchElementSnapshot({ disableCSSAnimation: true, waitForFontsLoaded: true })

Expected behavior
Real image of elements

Log
If applicable, add logs to help explain your problem. If you don't have log, enable 'debug:true' in the config and paste the log here.
Please use proper markdown to style it

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions