Skip to content

Latest commit

 

History

History
136 lines (117 loc) · 6.45 KB

QA_CUSTOM_NETWORK.md

File metadata and controls

136 lines (117 loc) · 6.45 KB

Custom Network

  1. Settings screen

    1. Go to Settings
    2. Check you see "General Settings" as the title for the first collection of settings
    3. Check you see "Developer Settings" as the title for the second collection of settings
  2. Risk Disclaimer screen

    1. Go to Network Settings
    2. Ensure you see the RISK DISCLAIMER screen
    3. Verify that there is a disclaimer text on a yellow background
    4. Confirm there is a button at the bottom of the page to acknowledge the disclaimer
  3. Network Pre-Settings Screen

    1. Click on "I UNDERSTAND"
    2. Check you see the NETWORK PRE-SETTINGS screen
    3. Check you see two pre-settings options: Mainnet and Testnet
    4. Check you see a button at the bottom of the page to customize the network
  4. CUSTOM NETWORK SETTINGS Screen

    1. Click on "CUSTOMIZE"

    2. Check you see the CUSTOM NETWORK SETTINGS screen

    3. Check you see a warning message text in a yellow background

    4. Check you see a form with the following values:

      • Node URL
      • Explorer URL
      • Explorer Service URL
      • Transaction Mining Service URL
      • Wallet Service URL (optional)
      • Wallet Service WS URL (optional)

      [!NOTE] Wallet Service fields only appear if the wallet is allowed on Wallet Service feature.

    5. Check you see a button at the bottom of the page to send the form

  5. Send the default network settings

    1. Click on "SEND"
    2. Verify that the wallet has successfully reloaded
    3. Ensure that a success feedback modal appears following the reload
    4. Dismiss the success feedback modal
  6. Send an invalid Node URL

    1. Empty the Node URL field
    2. Check that an invalidation message appears under the field informing Node URL is required
    3. Fill the field with an invalid URL, e.g. "invalid"
    4. Check that an invalidation message appears under the field informing Node URL should be a valid URL
  7. Send a custom network

    1. Navigate back to Network Pre-Settings screen
    2. Click on "CUSTOMIZE" again
    3. Fill the "Node URL" field with the value "https://node1.mainnet.hathor.network/v1a/"
    4. Click on "SEND"
    5. Wait the wallet reload
    6. Check if a success feedback modal has appeared
    7. Dismiss the success feedback modal
    8. Verify that a network status bar with a yellow background and the message "Custom network: mainnet" is visible at the top of the screen
  8. Restoring to mainnet

    1. Navigate back to Network Pre-Settings screen
    2. Click on "Mainnet" option
    3. Wait for the wallet to reload
    4. Check a success feedback modal has appeared
    5. Dismiss the success feedback modal
    6. Ensure that the network status bar at the top of the screen has disappeared
  9. Check testnet balance

    [!NOTE] In this test we want to check the difference of transaction history and balance between mainnet and testnet of the same wallet. Therefore, you should have some transactions also in your testnet wallet.

    1. Click on "Testnet" option
    2. Wait for the wallet to reload
    3. Check a success feedback modal has appeared
    4. Dismiss the success feedback modal
    5. Verify that a network status bar with a yellow background and the message "Custom network: testnet" is visible at the top of the screen
    6. Go to the Home screen
    7. Check the balance of Hathor token
    8. Click on Hathor token
    9. Check you see different transactions from "mainnet"
    10. Click on a transaction
    11. Click on the "Public Explorer" item
    12. Verify that you were redirected to the transaction page on the testnet explorer
  10. Check registered tokens are cleaned when changing network settings

    1. Register a token on Mainnet network
    2. Navigate to Network Pre-Settings screen
    3. Select the Testnet network
    4. Navigate to Mainscreen
    5. Check there is only the HTR token in the dashboard
  11. Check Wallet Service fields didn't appear when Wallet Service is disabled for the wallet

    1. Go to Unleash and disables the Wallet Service for the wallet
      1. You should set this configuration on wallet-service-mobile.rollout
    2. Close and reopens the App
    3. Navigate Custom Network Settings screen on Network Settings feature
    4. Check the Wallet Service fields do not appear
  12. Check Wallet Service fields disable Push Notification when they are empty

    1. Go to Unleash and enables the Wallet Service for the wallet
      1. You should set this configuration on wallet-service-mobile.rollout
    2. Close and reopens the App
    3. Navigate Custom Network Settings screen on Network Settings feature
    4. Check the Wallet Service fields do appear
    5. Make both Wallet Service fields empty
    6. Navigate to Settings screen
    7. Check the Push Notification option didn't appear
  13. Check Wallet Service fields can't be empty unilaterally

    1. Go to Unleash and enables the Wallet Service for the wallet
      1. You should set this configuration on wallet-service-mobile.rollout
    2. Close and reopens the App
    3. Navigate Custom Network Settings screen on Network Settings feature
    4. Check the Wallet Service fields do appear
    5. Make one of the Wallet Service fields empty
    6. Send the custom settings
      1. You should see an error message under the field
  14. Check Push Notification aren't available on Testnet

    1. Navigate to Network Pre-Settings screen
    2. Select Testnet pre-settings
    3. Navigate to Settings screen
    4. Check Push Notification didn't appear
  15. Check Push Notification aren't being received on Testnet

    1. Go to Unleash and enables the Wallet Service for the wallet
      1. You should set this configuration on wallet-service-mobile.rollout
    2. Navigate to Network Pre-Settings screen
    3. Select Mainnet pre-settings
    4. Enables Push Notification
    5. Send a transaction to your wallet from another wallet
      1. You should receive a push notification
    6. Navigate to Network Pre-Settings screen
    7. Select Testnet pre-settings
    8. Send a transaction to your wallet from another wallet
      1. You should not receive a push notification