diff --git a/test/screens/add_contact_screen_test.dart b/test/screens/add_contact_screen_test.dart index 3c8861d9..75ec159b 100644 --- a/test/screens/add_contact_screen_test.dart +++ b/test/screens/add_contact_screen_test.dart @@ -476,6 +476,10 @@ void main() { isTrue, ); expect(find.text(_l10n.discoveredContacts_contactAdded), findsOneWidget); + // The advert notification is throttled (and batched behind a 5 s timer) + // when an earlier one fired just before, which a loaded runner hits: + // let the batch window pass so no timer outlives the test. + await tester.pump(const Duration(seconds: 6)); await tester.pumpWidget(const SizedBox()); });