Skip to content

animationsSettled() hanging forever #226

Description

@Turbo87

Describe the bug

We lately started seeing an issue in our test suite on CI where tests were sometimes running into QUnit timeouts (60s) and it appears to be related to animationsSettled(). It seems that calling await animationsSettled() never resolves for some reason.

What appears to be related is that in some other test we are using @sinon/fake-timers to fake the system time, which is essentially overriding window.Date. My suspicion is that this interacts with the internal clock of ember-animated in some way that leaks between tests.

To Reproduce

Unfortunately I have not been able to reproduce this issue yet locally 😞

Expected behavior

I expect animationsSettled() to resolve once the animations are done, instead of waiting forever and causing the test to time out.

Desktop (please complete the following information):

The test suite is running in a Docker container with Google Chrome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions