Interacting with page.getBy*
non-existing element hangs instead of throwing
#7309
Labels
page.getBy*
non-existing element hangs instead of throwing
#7309
Describe the bug
When using
userEvent
+page.getBy*
and providing a selector that doesn't exist on the page, the test hangs forever instead of throwing "Element by this selector not found".Reproduction
Reproduction repository: https://github.com/kettanaito/vitest-locator-issue
Actual behavior
System Info
System: OS: macOS 15.2 CPU: (24) arm64 Apple M2 Ultra Memory: 90.80 GB / 128.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.13.0 - /usr/local/bin/node npm: 10.9.2 - /usr/local/bin/npm pnpm: 9.15.3 - /opt/homebrew/bin/pnpm Browsers: Chrome: 132.0.6834.83 Safari: 18.2 npmPackages: vitest: ^3.0.2 => 3.0.2
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: