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

test: add ui tests for TransactionTile widget #314

Merged

Conversation

victoreronmosele
Copy link
Contributor

This PR adds UI tests for the TransactionTile widget.

Closes #290.

],
);

testWidgets('should show paying and payout currencies', (tester) async {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should be payin instead of paying

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. Updating.

void main() {
group('TransactionTile', () {
final pfi = TestData.getPfi('did:dht:pfiDid');
const exchangeId = 'rfq_01ha835rhefwmagsknrrhvaa0k';
Copy link
Contributor

Choose a reason for hiding this comment

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

is exchangeId being used for anything other than initializing transactionTileTestWidget? if not, this variable probably isn't necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's only used to initialize the TransactionTile widget.

I'll remove it the extra variable.

@victoreronmosele
Copy link
Contributor Author

@ethan-tbd all current feedback have been addressed.

Copy link
Contributor

@ethan-tbd ethan-tbd left a comment

Choose a reason for hiding this comment

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

nice work!

@ethan-tbd ethan-tbd merged commit 0bc1feb into TBD54566975:main Oct 15, 2024
1 check passed
@victoreronmosele victoreronmosele deleted the tests-for-transaction-tile branch October 15, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create UI tests for TransactionTile widget
3 participants