-
Notifications
You must be signed in to change notification settings - Fork 2
Test Cases
Monika edited this page Jul 24, 2024
·
8 revisions
- Verify the main page loads successfully.
- Check that the main page displays three buttons: "Create New Wallet," "Recover Your Wallet," and "Import Wallet File."
- Ensure "Create New Wallet" button is visible and clickable.
- Ensure "Recover Your Wallet" button is visible and clickable.
- Ensure "Import Wallet File" button is visible and clickable.
- Verify that clicking "Create New Wallet" navigates the user to the mnemonic phrase page.
- Verify that the mnemonic phrase page loads successfully (no UI issues, errors, or latency).
- Check that the page displays a 24-word mnemonic phrase in a numbered grid. All random.
Back button
- Verify the presence and correct functionality of a "Back" button.
- Verify that clicking "Back" navigates the user back to the main page.
- Ensure that no mnemonic phrase information is retained when returning to the main page.
Generate New Mnemonics button
- Verify the presence of a "Generate New Mnemonics" button.
- Verify that clicking "Generate New Mnemonics" generates a new set of 24 words.
- Ensure that the new mnemonic phrase differs from the previously generated one.
Copy to Clipboard button
- Verify the presence of a "Copy to Clipboard" button.
- Verify that clicking "Copy to Clipboard" copies the 24-word mnemonic phrase to the clipboard.
- Ensure that a success message is shown after copying.
- Test that the copied mnemonic phrase can be pasted correctly into another application.
- Test that the copied mnemonic phrase can be pasted correctly into the wallet app and successfully open the correct wallet.
Next step button
- Verify the presence and correct functionality of a "Next Step" button.
- Verify that clicking "Next Step" navigates the user to the next appropriate page: Mnemonics confirmation step
- Verify that the 24-word mnemonic phrase is carried over correctly to the next step.
- Verify the mnemonic confirmation page loads successfully.
- Check that the page displays a 24-word mnemonic phrase from the previous step.
- Check that the mnemonic phrase consists of 24 numbered slots, with 20 words correctly filled and 4 slots empty.
- Ensure the 4 missing words are listed above the grid for drag-and-drop.
- Verify the presence of a "Back" button.
- Verify the presence of a "Next Step" button.
- Verify that the 4 missing words can be dragged and dropped into the empty slots on the grid.
- Ensure that each word can only be placed in one slot.
- Ensure that only one word can be placed in one slot at a time. If there was already a word, it should pop out to the initial top position above the grid.
- Check that a word, once placed, remains in the slot unless dragged out again.
- Ensure the user can easily drag the word out of the incorrect slot and try again.
- Verify that correctly placing the words into their slots provides visual feedback.
- Ensure that an error message or visual indication is provided if the words are placed in the wrong slots.
Back button
- Verify that clicking "Back" navigates the user back to the mnemonic phrase page.
- Ensure that the mnemonic phrase is retained when returning to the mnemonic phrase page.
Next step button
- Verify that clicking "Next Step" is only enabled when all 4 words are correctly placed in the grid.
- Ensure that clicking "Next Step" navigates the user to the next page i.e. password setup.
- Check behavior when attempting to click "Next Step" with only some of the words correctly placed.
- Verify the password setup page loads successfully.
- Ensure the "Set the password:" input field is visible and accepts input.
- Ensure the "Confirm the password:" input field is visible and accepts input.
- Verify that by default input is hidden and replaced by "*".
- Check that the page displays eye icon buttons for both input fields.
- Check that both input fields have the placeholder text "Enter password".
- Check that the page displays: "Back" button.
- Check that the page displays: Green "Create Wallet" button.
- Verify clicking the eye icon reveals the entered password in the "Set the password:" field.
- Verify clicking the eye icon reveals the entered password in the "Confirm the password:" field.
- Ensure clicking the eye icon again hides the password.
- Verify that the "Confirm the password:" field must match the "Set the password:" field.
- Verify an appropriate error message is shown if the passwords in the "Set the password" and "Confirm the password" fields do not match.
- Verify the system correctly handles and accepts special characters in the password fields.
- Verify that the password is securely transmitted and not exposed in any way.
- Ensure the app correctly handles password encryption and validation.
Password Requirements Validation
- Verify the password must be at least 8 characters long.
- Ensure the password must include at least one uppercase letter.
- Ensure the password must include at least one lowercase letter.
- Ensure the password must include at least one number.
- Ensure the password must include at least one special character.
- Verify an appropriate error message is shown if the password does not meet the requirements.
- Ensure that pasting passwords into the input fields is handled correctly.
- Verify that passwords pasted into the fields must still meet the validation criteria.
Back Button
- Verify clicking the "Back" button navigates the user back to the mnemonic confirmation page.
- Ensure that any entered passwords are not retained when navigating back.
Create Wallet Button
- Verify the "Create Wallet" button is disabled if the password fields are empty or passwords do not meet requirements.
- Ensure the "Create Wallet" button is enabled only when both password fields are filled, match, and meet the requirements.
- Verify clicking the "Create Wallet" button with valid passwords successfully creates the wallet.
- Ensure the user is navigated to the wallet dashboard page upon successful wallet creation.
- Check behavior when clicking "Create Wallet" with both password fields empty.
- Check behavior when clicking "Create Wallet" with only one of the password fields filled.
- Verify the "Recover wallet from mnemonics" page loads successfully.
- Check that the page displays the following elements: "Back" button, "Next Step" button.
- Check that the page displays: Input field with the note "Please put your 12-word or 24-word mnemonic" above it.
- Ensure the input field accepts text input.
- Verify the input field does not have a placeholder text.
- Verify that the input field accepts exactly 12 or 24 words.
- Ensure that any incorrect number of words (less than 12 or between 13-23 or more than 24) displays an appropriate error message.
- Check that the input field accepts words without numbering or special formatting.
- Ensure that extra spaces, tabs, or formatting issues prevent the acceptance of a valid phrase.
- Verify that the system identifies and rejects invalid (inexistent) mnemonic phrases.
- Ensure an appropriate error message is shown for invalid phrases (e.g., incorrect words, wrong number of words).
- Ensure the system correctly identifies valid phrases without case sensitivity.
Back Button
- Verify clicking the "Back" button navigates the user back to the main page.
- Ensure that any entered mnemonic phrase is not retained when navigating back.
Next Step Button
- Verify the "Next Step" button is disabled if the input field is empty or contains an incorrect number of words.
- Ensure the "Next Step" button is enabled only when a valid 12-word or 24-word mnemonic phrase is entered.
- Verify that clicking the "Next Step" button with a valid mnemonic phrase navigates the user to the password setup screen.
- Ensure the password setup screen is the same as in the "Create new wallet" process.
- Verify the "Import wallet file" page loads successfully.
- Ensure the "Select wallet file" button is visible and clickable.
- Verify that clicking the button opens the file selection dialog.
- Check that the file selection dialog allows the user to select a wallet file.
- Ensure that only valid wallet file types can be selected (i.e., .json).
- Ensure the "Setup password" page is visible and meets all the requirements described in the Password Setup Page
- Verify the "Import wallet" button throws an error if no file is selected or password field is empty.
- Ensure the "Import wallet" button func is enabled only when a file is selected and the password field is filled.
- Verify that clicking the "Import wallet" button with a valid wallet file and correct password successfully imports the wallet.
- Ensure the user is navigated to the wallet dashboard or success confirmation page upon successful wallet import.
- Verify behavior when an invalid wallet file type is selected.
- Ensure an appropriate error message is shown on invalid file.
- Verify behavior when the wrong password is entered for the selected wallet file.
- Ensure an appropriate error message is shown on the incorrect.
- Check behavior when clicking "Import wallet" with the password field empty.
- Ensure an appropriate error message is shown on empty password.
- Check behavior when clicking "Import wallet" without selecting a wallet file.
- Ensure an appropriate error message is shown on no file selection.
- Verify behavior when the user opens the file selection dialog but cancels the selection.
- Ensure the app correctly handles the cancellation and allows the user to retry.
- Verify behavior when a corrupted or incomplete wallet file is selected.
- Ensure an appropriate error message is shown for the corrupted/incomplete and the file is not processed.
- Verify behavior when the user selects multiple files in quick succession.
- Ensure only the last selected file is processed, or an appropriate message is shown if multiple files are not supported.
- Verify that the system provides immediate feedback upon correct file selection.
- Verify that the user can remove or change the selected file before entering the password.
- Ensure the system correctly updates the file selection and resets any error messages after retrying.
- Verify that users can cancel the file upload process if needed.
- Ensure that any partially uploaded files are handled correctly and the user can retry.
- Verify that reloading the mnemonic phrase page generates a new mnemonic phrase.
- Ensure the user is prompted to start the process again if the page is reloaded on the further steps.
- Ensure that user confirmation is required if the page is reloaded (to prevent accidental data loss).
- Check behavior when the session expires while on the mnemonic phrase setup steps.
- Check behavior when the session expires while on the password setup page.
- Ensure the user is redirected to the login/main page appropriately.
- Verify behavior if clipboard permissions are denied.
- Ensure an appropriate error message is displayed if clipboard access is not available.
- Verify behavior when the network connection is lost during the tested process.
- Check behavior under slow network conditions.
- Ensure the system provides feedback to the user about the ongoing process (e.g., loading spinner or progress bar).
- Test the above features across different browsers (Chrome, Firefox, Safari, Edge).
- Ensure consistent behavior and appearance across browsers.
- Verify that the mnemonic phrase page is responsive on different screen sizes.
- Ensure all buttons and mnemonic words are accessible and readable on mobile devices.
- Ensure that the UI elements (buttons, grid) are consistent with the overall app design.
- Verify that button labels are clear and understandable.
- Check that buttons are accessible via keyboard navigation.
- Verify the page loads quickly and performs smoothly during drag-and-drop actions.
- Verify the page loads quickly and performs smoothly during file selection and password input.
- Ensure no significant lag or delay is experienced.