Skip to content

Commit

Permalink
test(navigation): rename debug key variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
CHOOSEIT committed Apr 11, 2024
1 parent 2df107f commit 569ae36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/component/login_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ void main() {
//Needs a delay to allow the existance check to complete
await tester.pumpAndSettle(delayNeededForAsyncFunctionExecution);

final loginButtonStillHere = find.byType(HomePage);
expect(loginButtonStillHere, findsOneWidget);
final homePage = find.byType(HomePage);
expect(homePage, findsOneWidget);
});
});

Expand Down Expand Up @@ -96,8 +96,8 @@ void main() {
//Needs a delay to allow the existance check to complete
await tester.pumpAndSettle(delayNeededForAsyncFunctionExecution);

final loginButtonStillHere = find.byType(CreateAccountPage);
expect(loginButtonStillHere, findsOneWidget);
final createAccountPage = find.byType(CreateAccountPage);
expect(createAccountPage, findsOneWidget);

final backButton = find.byKey(LeadingBackButton.leadingBackButtonKey);
await tester.tap(backButton);
Expand All @@ -117,8 +117,8 @@ void main() {
//Needs a delay to allow the existance check to complete
await tester.pumpAndSettle(delayNeededForAsyncFunctionExecution);

final loginButtonStillHere = find.byType(CreateAccountPage);
expect(loginButtonStillHere, findsOneWidget);
final createAccountPage = find.byType(CreateAccountPage);
expect(createAccountPage, findsOneWidget);

final confirmAccountCreating =
find.byKey(CreateAccountPage.confirmButtonKey);
Expand Down

0 comments on commit 569ae36

Please sign in to comment.