Skip to content

[Regression]: TypeError: Cannot read properties of undefined (reading 'expectInfo') #35138

@Smrtnyk

Description

@Smrtnyk

Last Good Version

1.50

First Bad Version

1.51

Steps to reproduce

  1. clone my repo https://github.com/Smrtnyk/PW-repros
  2. Run the asymmetric matcher test

Expected behavior

In version 1.50 the error message was clear

Actual behavior

In version 1.51 a weird exception happens TypeError: Cannot read properties of undefined (reading 'expectInfo')
I suspect it is related to this commit 4b64c47

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (24) x64 12th Gen Intel(R) Core(TM) i9-12950HX
    Memory: 35.97 GB / 63.69 GB
  Binaries:
    Node: 22.12.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.9.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.0 - ~\AppData\Roaming\npm\pnpm.CMD
  IDEs:
    VSCode: 1.96.0 - C:\workspaces\devtools\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.2.26 - C:\Program Files\Git\usr\bin\bash.EXE
  npmPackages:
    @playwright/test: 1.51.0 => 1.51.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions