Skip to content

Allow usage of Playwright devices with vitest #9383

@Christian24

Description

@Christian24

Clear and concise description of the problem

Hello,

Playwright exports device configurations that contain viewports, user agent touch and so on: https://playwright.dev/docs/emulation
It would be nice to use these in a vitest configuration directly.

Suggested solution

  1. Export devices directly from vitest-browser-playwright.
  2. Allow to use a device as instance in the configuration

Alternative

Provide examples/documentation how to simulate capabilities like touch

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions