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

e2e: skipped test for build consent message #381

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Dec 24, 2024

Motivation

I don't really want to automate the test of the "Build consent message" in the CI because it would requires building the canister of #382 in the pipeline which would require some tooling and time but, it's still handy to have a test to run locally. That's why this PR add such an E2E test.

Changes

  • New E2E test to assert the consent message that is generated from the library.

Copy link
Contributor

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

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

LGTM, small question

}: {
walletUserId: string;
partyUserId: string;
tokenSymbol: 'ICP' | 'TKN';
Copy link
Contributor

Choose a reason for hiding this comment

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

Not really sure if it will be expanded or used more than here (and in the other file modified), but does it make sense to create a mock type for 'ICP' | 'TKN'?

Copy link
Member Author

Choose a reason for hiding this comment

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

It probably won't expand soon because the Juno Docker used for E2E testing supports only ICP; no other ledger is deployed within the container. TKN is the custom test. Therefore, I would suggest we skip this for now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Note: I merge the PR but, we can create the type in another PR if you think it's worth it.

@peterpeterparker peterpeterparker merged commit c4f19e8 into main Dec 25, 2024
10 checks passed
@peterpeterparker peterpeterparker deleted the e2e/build-consent-message branch December 25, 2024 06:16
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.

2 participants