Skip to content

[BUG] waitForAnimationToEnd always shows 0ms #78

@chrisjin-swipe

Description

@chrisjin-swipe

Description

waitForAnimationToEnd always shows 0ms
✓ waitForAnimationToEnd (0ms)

From the official docs this should work with a timeout flag ie.

  - waitForAnimationToEnd:
      timeout: 5000 # Wait up to 5s for movement to stop

Which should wait 5s for the UI to settle.

Use case:

  • After submitting a form, there is a loading content UI which takes a couple seconds to settle. I have tried adding waitToSettleTimeoutMs on taps, and also extended wait on the loading UI, however these seem to hang for 17s even after the loading message has disappeared (on Android)

Steps to Reproduce

  1. Run command 'waitForAnimationToEnd'

Expected Behavior

Waits 5s for the UI to settle

Actual Behavior

0ms wait

Image

Environment

  • maestro-runner version: latest-version
  • Executor: UIAutomator2
  • Device/Simulator: Android Medium_Phone_API_36.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions