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] Unit tests for Login component #283

Merged
merged 3 commits into from
Dec 18, 2023
Merged

Conversation

panleone
Copy link
Member

Abstract

This together with #277 #279 #282 completes the test coverage for the Login component i.e. the screen where the user selects how to import/create its wallet.
This test coverage is very important: first of all we are sure that all the privatekeys/secrets and passwords are relayed correctly to the Dashboard (which still needs unit tests tho) and at the same time this protects us from all stupid bugs like the missing optional passphrase in import wallet that we had to fix some weeks ago.

The idea of this PR is simpe: we create the Login component, verify that its children components are created with the correct props, emit a random event from the children component (we can do this since all children components have already been unit tested) and finally verify that the Login relays the correct event with correct parameters.

@panleone panleone self-assigned this Dec 10, 2023
Copy link

netlify bot commented Dec 10, 2023

Deploy Preview for cheery-moxie-4f1121 ready!

Name Link
🔨 Latest commit cd177bd
🔍 Latest deploy log https://app.netlify.com/sites/cheery-moxie-4f1121/deploys/65789b3c118e1e00077b0c8c
😎 Deploy Preview https://deploy-preview-283--cheery-moxie-4f1121.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@panleone panleone added the Test Addition of unit or functional test label Dec 10, 2023
@panleone
Copy link
Member Author

review applied

Copy link
Member

@Duddino Duddino left a comment

Choose a reason for hiding this comment

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

ACK

@Duddino Duddino merged commit 2a47597 into PIVX-Labs:master Dec 18, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Addition of unit or functional test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants