Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

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

@ethanwlee ethanwlee 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!

@ethanwlee ethanwlee 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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create UI tests for TransactionTile widget
3 participants