test(app): search hits find the run's fields as data
This commit is contained in:
@@ -512,8 +512,8 @@ void main() {
|
|||||||
find.byKey(const Key('run-detail-tab-body-summary')),
|
find.byKey(const Key('run-detail-tab-body-summary')),
|
||||||
findsOneWidget,
|
findsOneWidget,
|
||||||
);
|
);
|
||||||
expect(find.textContaining('"prompt": "ship it"'), findsNothing);
|
expect(find.text('ship it'), findsNothing);
|
||||||
expect(find.textContaining('"result": "ok"'), findsNothing);
|
expect(find.text('ok'), findsNothing);
|
||||||
|
|
||||||
// A current field hit opens the same run at the Summary section holding the
|
// A current field hit opens the same run at the Summary section holding the
|
||||||
// match, leaving the other section collapsed.
|
// match, leaving the other section collapsed.
|
||||||
@@ -528,8 +528,8 @@ void main() {
|
|||||||
expect(provider.value.uri.path, '/runs/7');
|
expect(provider.value.uri.path, '/runs/7');
|
||||||
expect(find.byType(SearchScreen), findsNothing);
|
expect(find.byType(SearchScreen), findsNothing);
|
||||||
expect(find.byKey(const Key('run-visit-pane')), findsNothing);
|
expect(find.byKey(const Key('run-visit-pane')), findsNothing);
|
||||||
expect(find.textContaining('"result": "ok"'), findsOneWidget);
|
expect(find.text('ok'), findsOneWidget);
|
||||||
expect(find.textContaining('"prompt": "ship it"'), findsNothing);
|
expect(find.text('ship it'), findsNothing);
|
||||||
|
|
||||||
await tester.pumpWidget(const SizedBox.shrink());
|
await tester.pumpWidget(const SizedBox.shrink());
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
@@ -659,7 +659,7 @@ void main() {
|
|||||||
find.byKey(const Key('run-detail-tab-body-summary')),
|
find.byKey(const Key('run-detail-tab-body-summary')),
|
||||||
findsOneWidget,
|
findsOneWidget,
|
||||||
);
|
);
|
||||||
expect(find.textContaining('"result": "ok"'), findsNothing);
|
expect(find.text('ok'), findsNothing);
|
||||||
|
|
||||||
await tester.pumpWidget(const SizedBox.shrink());
|
await tester.pumpWidget(const SizedBox.shrink());
|
||||||
await tester.pump();
|
await tester.pump();
|
||||||
|
|||||||
Reference in New Issue
Block a user