The following code does not find a button:
expect(find.byType(RaisedButton), findsOneWidget);
which is created like this (inside a Column widget, if it makes sense):
RaisedButton.icon(
onPressed: () {},
icon: const Icon(Icons.refresh),
label: const Text('ОБНОВИТЬ'),
),
If a button is created by RaisedButton (w/o icon factory) then the finder finds the button.
[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8)
The following code does not find a button:
expect(find.byType(RaisedButton), findsOneWidget);which is created like this (inside a Column widget, if it makes sense):
If a button is created by RaisedButton (w/o icon factory) then the finder finds the button.
[✓] Flutter (Channel stable, 1.22.3, on Linux, locale en_US.UTF-8)