Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x committed Jan 30, 2025
1 parent 0894f2a commit d212dba
Showing 1 changed file with 1 addition and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,6 @@ void main() {
},
);

testWidgets(
'StreamSendingIndicator shows an Icon if message state is sending',
(tester) async {
await tester.pumpWidget(
MaterialApp(
home: StreamChatTheme(
data: StreamChatThemeData.light(),
child: Scaffold(
body: Center(
child: StreamSendingIndicator(
message: Message(
state: MessageState.sending,
),
),
),
),
),
),
);

expect(find.byType(Icon), findsOneWidget);
},
);

goldenTest(
'golden test for StreamSendingIndicator with StreamSvgIcon.checkAll',
fileName: 'sending_indicator_0',
Expand Down Expand Up @@ -91,7 +67,7 @@ void main() {
);

goldenTest(
'golden test for StreamSendingIndicator with Icon(Icons.access_time)',
'golden test for StreamSendingIndicator with StreamSvgIcons.time',
fileName: 'sending_indicator_2',
constraints: const BoxConstraints.tightFor(width: 50, height: 50),
builder: () => MaterialAppWrapper(
Expand Down

0 comments on commit d212dba

Please sign in to comment.