Skip to content

Implement toBeInViewport assertion #7650

@kwojcik

Description

@kwojcik

Clear and concise description of the problem

I've been implementing lot of scrolling things recently, and using getBoundingClientRect or IntersectionObserver in tests introduces clutter and makes tests less readable.

Suggested solution

Implement toBeInViewport

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: browserIssues and PRs related to the browser runnerp2-nice-to-haveNot breaking anything but nice to have (priority)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions