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]: Getting expect.soft.toMatchAriaSnapshot: value.startsWith when I try to run on a drop down contains a dropdown option '- checkbox "[Select all]" [checked]' #34032

Open
marcusNumminen opened this issue Dec 16, 2024 · 1 comment

Comments

@marcusNumminen
Copy link
Contributor

Version

1.49.1

Steps to reproduce

I have a drop down that look like this
Image
and I use codegen to generate the snapshot. Codegen give me this yml:

 - textbox
  - list:
    - listitem:
      - checkbox "[Select all]" [checked]
      - text: [Select all]
    - listitem:
      - checkbox "English" [checked]
      - text: English
    - listitem:
      - checkbox "Swedish (Sweden)" [checked]
      - text: Swedish (Sweden)

When use this in my test I get the following error:
TypeError: expect.soft.toMatchAriaSnapshot: value.startsWith is not a function

However if I comment out (or remove) the first listitem it works fine

Sorry I can't give you a better repro than this.....

Expected behavior

It should work fine with the above drop down content (see picture)

Actual behavior

When I run the code I get TypeError: expect.soft.toMatchAriaSnapshot: value.startsWith is not a function error

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 15.84 GB / 31.85 GB
  Binaries:
    Node: 18.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.8.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.4 - C:\Program Files\nodejs\pnpm.CMD
  IDEs:
    VSCode: 1.96.0 - C:\Users\fancy_stuff\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.2.26 - C:\Program Files\Git\usr\bin\bash.EXE
  npmPackages:
    @playwright/test: 1.49.1 => 1.49.1
    playwright: ^1.45.1 => 1.49.1
@pavelfeldman
Copy link
Member

Is there a way for us to access your page or get relevant DOM markup?

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

No branches or pull requests

2 participants