Skip to content

Commit

Permalink
Update edit_profile_page_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Insiyaya committed Feb 2, 2024
1 parent b8a34f4 commit cd6bbe8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,14 @@ Future<void> main() async {
verify(notifyListenerCallback());
});
// Testing onPressed for firstName

testWidgets("Testing if firstName text field gets focus", (tester) async {
userConfig.updateUser(
User(firstName: 'Test', lastName: 'Test', email: 'test@test.com'),
);
await tester.pumpWidget(createChangePassScreenDark());
await tester.pumpAndSettle();
await tester.ensureVisible(find.byKey(const Key('FirstNameTextField')));
await tester.tap(find.byKey(const Key('FirstNameTextField')));
await tester.pumpAndSettle();

Expand Down

0 comments on commit cd6bbe8

Please sign in to comment.