diff --git a/app/test/application/search_wiring_test.dart b/app/test/application/search_wiring_test.dart index 86de29eb..0ab90a5c 100644 --- a/app/test/application/search_wiring_test.dart +++ b/app/test/application/search_wiring_test.dart @@ -512,8 +512,8 @@ void main() { find.byKey(const Key('run-detail-tab-body-summary')), findsOneWidget, ); - expect(find.textContaining('"prompt": "ship it"'), findsNothing); - expect(find.textContaining('"result": "ok"'), findsNothing); + expect(find.text('ship it'), findsNothing); + expect(find.text('ok'), findsNothing); // A current field hit opens the same run at the Summary section holding the // match, leaving the other section collapsed. @@ -528,8 +528,8 @@ void main() { expect(provider.value.uri.path, '/runs/7'); expect(find.byType(SearchScreen), findsNothing); expect(find.byKey(const Key('run-visit-pane')), findsNothing); - expect(find.textContaining('"result": "ok"'), findsOneWidget); - expect(find.textContaining('"prompt": "ship it"'), findsNothing); + expect(find.text('ok'), findsOneWidget); + expect(find.text('ship it'), findsNothing); await tester.pumpWidget(const SizedBox.shrink()); await tester.pump(); @@ -659,7 +659,7 @@ void main() { find.byKey(const Key('run-detail-tab-body-summary')), findsOneWidget, ); - expect(find.textContaining('"result": "ok"'), findsNothing); + expect(find.text('ok'), findsNothing); await tester.pumpWidget(const SizedBox.shrink()); await tester.pump();