Skip to content

Let's rethink animations in automatic regression testing context #4348

@mfranzke

Description

@mfranzke

Using a fixed 2000ms timeout can slow down tests and lead to flakiness. Consider waiting for a specific element state, CSS transition end, or network idle event instead of an arbitrary delay.

Originally posted by @Copilot in #4244 (comment)

We should check whether we could either determine the state of an animation e.g. via the Web Animation API, or disable animations by setting their duration to 0 within visual regression, or let Playwright run with the prefers-reduced-motion setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🕋 In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions