Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add withdraw page #31

Merged
merged 12 commits into from
Jan 31, 2024
Merged

Add withdraw page #31

merged 12 commits into from
Jan 31, 2024

Conversation

kirahsapong
Copy link
Contributor

@kirahsapong kirahsapong commented Jan 30, 2024

Closes #16

  • updates readme getting started steps
  • extracts fee details to shared component
  • extracts currency converter to shared component
  • currency converter toggle not yet implemented
Screenshot 2024-01-30 at 3 07 34 PM

@kirahsapong kirahsapong marked this pull request as draft January 30, 2024 23:09
@kirahsapong kirahsapong marked this pull request as ready for review January 30, 2024 23:40
Copy link
Member

@wesbillman wesbillman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! Thanks @kirahsapong!!

README.md Outdated Show resolved Hide resolved
frontend/lib/features/withdraw/withdraw_page.dart Outdated Show resolved Hide resolved
Comment on lines +36 to +47
testWidgets('should navigate to Deposit screen on tap of deposit button',
(tester) async {
await tester.pumpWidget(
WidgetHelpers.testableWidget(child: const AccountBalance()),
);

await tester.tap(find.text('Deposit'));
await tester.pumpAndSettle();

expect(find.byType(DepositPage), findsOneWidget);
});

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

Comment on lines 13 to 15
final depositAmountPattern = RegExp(r'\$[0-9]+\.[0-9]{2}$');

expect(find.textContaining(depositAmountPattern), findsExactly(2));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will these amounts not be consistent in these tests? Like can we find.text with exact matches? Or do we need the regex here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with you on exact matches, the test replacing this one (currency converter) finds exact matches but i've left in the regex, though happy to remove also! it was in the deposit page test - though i suppose its nice to confirm we have something resembling numbers showing up in the component, lol. 😆 in the new currency converter test it sits alongside expects that are looking for exact matches

frontend/test/features/withdraw/withdraw_page_test.dart Outdated Show resolved Hide resolved
@michaelneale
Copy link
Contributor

niiiice!

@kirahsapong kirahsapong merged commit ea7dfd8 into main Jan 31, 2024
1 check passed
@kirahsapong kirahsapong deleted the feat/withdraw-page branch January 31, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement WithdrawPage
3 participants