zulip/zulip-flutter

tests: Get route-transition duration robustly, instead of hard-coding

Open

#1668 aperta il 4 lug 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Dart (456 fork)github user discovery
a-testshelp wanted

Metriche repository

Star
 (454 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

When https://github.com/flutter/flutter/pull/171109 lands, we should use the new TransitionDurationObserver instead of hard-coding what we expect a transition duration to be, e.g. in code like this:

            // sheet appears onscreen; default duration of bottom-sheet enter animation
            await tester.pump(const Duration(milliseconds: 250));

Once that's the norm instead of the exception, we can close this issue.

Guida contributor