test(app): run start wiring mocks the pending launch store
This commit is contained in:
@@ -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<void> 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);
|
||||
|
||||
Reference in New Issue
Block a user