zulip/zulip-flutter

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

Open

#1 668 ouverte le 4 juil. 2025

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Dart (456 forks)github user discovery
a-testshelp wanted

Métriques du dépôt

Stars
 (454 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur