flutter_finder_usercentric 1.0.0-beta.1 copy "flutter_finder_usercentric: ^1.0.0-beta.1" to clipboard
flutter_finder_usercentric: ^1.0.0-beta.1 copied to clipboard

Flutter usercentric finder provides flutter finder based on usercentric approach and ready to use during test

FLUTTER_FINDER_USERCENTRIC #

Flutter finder to find element based on their semantic role(button, textfield, etc) and semantic label

How to use it ? #

  testWidgets('byAccessibleName should return element when tooltip found', (tester) async {
        await tester.pumpWidget(TestApp());
        
        var finderByAccessibleName = find.byAccessibleName("ElevatedButtonWithTooltip");
        expect(finderByAccessibleName, findsOneWidget);
        expect((tester.widget(finderByAccessibleName) as Tooltip).message, "ElevatedButtonWithTooltip");
  });
    
  testWidgets('byAccessibleRoleAndName should return ElevatedButton when found', (tester) async {
        await tester.pumpWidget(TestApp());
        
        var finderByAccessibleRoleAndName = find.byAccessibleRoleAndName(tester, AccessibleRole.button, "SimpleElevatedButtonText");
        expect(finderByAccessibleRoleAndName, findsOneWidget);
  });

For more example there.

3
likes
140
points
449
downloads

Documentation

API reference

Publisher

verified publisherkemitech.io

Weekly Downloads

Flutter usercentric finder provides flutter finder based on usercentric approach and ready to use during test

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_test

More

Packages that depend on flutter_finder_usercentric