diff --git a/app/test/application/run_start_wiring_test.dart b/app/test/application/run_start_wiring_test.dart index 906f0078..4f203022 100644 --- a/app/test/application/run_start_wiring_test.dart +++ b/app/test/application/run_start_wiring_test.dart @@ -2,6 +2,7 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; +import 'package:shared_preferences/shared_preferences.dart'; import 'package:pipelines_app/application/pipelines_app.dart'; import 'package:pipelines_app/core/transport/pipelines_client.dart'; import 'package:pipelines_app/features/pipelines/ui/run_pipeline_wording.dart'; @@ -53,6 +54,8 @@ Future reply( } void main() { + // The Run dialog reads the device's pending launch store before it opens. + setUp(() => SharedPreferences.setMockInitialValues({})); testWidgets('an accepted launch opens the returned run and re-reads the ' 'runs list exactly once', (tester) async { tester.view.physicalSize = const Size(1100, 900);