Im trying to test if password its obscured, this is how far I go, but seems like flutter can read a text even if it is obscured.
testWidgets('password must be hidden', (WidgetTester tester) async {
await tester.pumpWidget(wrapWithMaterialApp(child: page));
await tester.enterText(find.byKey(Key('pass')), '1234');
final passFinder = find.text('1234');
expect(passFinder, findsNothing);
});
the test actually find '1234' but im completely sure its obscured.