Skip to content

userEvent.keyboard doesn't release pressed key with playwright provider #6693

@kwangure

Description

@kwangure

Describe the bug

Interactive API doesn't seem to release keys across consecutive tests or reruns.

Related issue: #6082 (fixed)

Reproduction

https://github.com/kwangure/vitest-matcher-rerun-repro

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
    Memory: 420.47 MB / 3.86 GB
  Binaries:
    Node: 20.16.0 - ~\.local\share\pnpm\node.EXE
    npm: 10.8.1 - ~\.local\share\pnpm\npm.CMD
    pnpm: 9.7.1 - ~\AppData\Local\Microsoft\WinGet\Packages\pnpm.pnpm_Microsoft.Winget.Source_8wekyb3d8bbwe\pnpm.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @vitest/browser: ^2.1.2 => 2.1.2
    vite: ^5.4.8 => 5.4.8
    vitest: ^2.1.2 => 2.1.2

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: browserIssues and PRs related to the browser runnerp3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions