Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
test: trying to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiMiguel committed Nov 29, 2023
1 parent fabb891 commit 65b74de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions lib/home/widgets/results_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -356,13 +356,11 @@ class _AiResponseState extends State<_AiResponse>
child: const BackToAnswerButton(),
),
Flexible(
child: Expanded(
child: Text(
response.summary,
style: textTheme.headlineLarge?.copyWith(
color: VertexColors.white,
fontSize: 32,
),
child: Text(
response.summary,
style: textTheme.headlineLarge?.copyWith(
color: VertexColors.white,
fontSize: 32,
),
),
),
Expand Down
4 changes: 2 additions & 2 deletions test/home/widgets/results_view_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void main() {

testWidgets('renders CarouselView', (tester) async {
await tester.pumpApp(bootstrap());
expect(find.byType(ResultsView), findsOneWidget);
expect(find.byType(CarouselView), findsOneWidget);
});

testWidgets('animates in search box when enter', (tester) async {
Expand Down Expand Up @@ -114,7 +114,7 @@ void main() {

final forwardExitStatuses = tester
.state<BlueContainerState>(find.byType(BlueContainer))
.forwardEnterStatuses;
.forwardExitStatuses;

expect(forwardExitStatuses, equals([Status.resultsToSourceAnswers]));
});
Expand Down

0 comments on commit 65b74de

Please sign in to comment.