Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: --ignore-snapshots option doesn't work when combined with --ui mode #32868

Closed
matewka opened this issue Sep 29, 2024 · 3 comments · Fixed by #32875
Closed

[Bug]: --ignore-snapshots option doesn't work when combined with --ui mode #32868

matewka opened this issue Sep 29, 2024 · 3 comments · Fixed by #32875

Comments

@matewka
Copy link

matewka commented Sep 29, 2024

Version

1.47.2 (tested to be present since 1.43.0)

Steps to reproduce

  1. Clone the repo: https://github.com/matewka/playwright-bug-test
  2. Install dependencies with yarn
  3. Run tests in CLI mode by executing: yarn test
  4. Run the same tests in UI mode by executing: yarn test:ui

Expected behavior

When Playwright is run with --ignore-snapshots flag, expect(locator).toHaveScreenshot() is always ignored, as described in the docs.

Actual behavior

Test fails on snapshot comparison when --ignore-snapshots flag is used together with --ui flag.

Additional context

No response

Environment

System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Pro
    Memory: 206.69 MB / 32.00 GB
  Binaries:
    Node: 18.19.1 - ~/.nvm/versions/node/v18.19.1/bin/node
    Yarn: 1.22.18 - /opt/homebrew/bin/yarn
    npm: 7.24.2 - /opt/homebrew/bin/npm
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: 1.47.2 => 1.47.2
@Skn0tt
Copy link
Member

Skn0tt commented Sep 30, 2024

Thanks for reporting, can reproduce. I'll write a fix.

@Skn0tt
Copy link
Member

Skn0tt commented Sep 30, 2024

This is fixed in the upcoming 1.48 release that's gonna be cut very soon.

@Skn0tt Skn0tt closed this as completed Sep 30, 2024
@matewka
Copy link
Author

matewka commented Sep 30, 2024

Thank you very much for a blazing fast reaction 🤟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants