Skip to content

[🐛 Bug]: inline snapshots are broken #12144

@christian-bromann

Description

@christian-bromann

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

latest

Mode

WDIO Testrunner

Which capabilities are you using?

n/a

What happened?

It seems that calling await expect(...).toMatchInlineSnapshot() doesn't set the inline snapshot anymore. The terminal notes that a snapshot was added but the file hasn't changed which usually indicates that we couldn't define the call position from the call stack.

This should be done:

  • investigate why the inline snapshot is not set anymore (this might require looking into expect-webdriverio as well)
  • provide a fix
  • change the e2e test cases to set updateSnapshot to none
  • document updateSnapshot in https://webdriver.io/docs/configuration

What is your expected behavior?

Inline snapshots should be set.

How to reproduce the bug.

Run internal e2e tests.

Relevant log output

n/a

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛help wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions