Ejemplo n.º 1
0
  /**
   * Verify the following:
   *
   * <ul>
   *   <li>Start with empty wallet fixture
   *   <li>Unlock wallet
   *   <li>Exercise the Tools screen
   * </ul>
   */
  @Test
  public void verifyToolsScreen() throws Exception {

    // Start with the empty hardware wallet fixture
    arrangeEmpty(Optional.<HardwareWalletFixture>absent());

    // Unlock the wallet
    QuickUnlockEmptyWalletFixtureRequirements.verifyUsing(window);

    // Verify
    ToolsScreenRequirements.verifyUsing(window);
  }
Ejemplo n.º 2
0
  /**
   * Verify the following:
   *
   * <ul>
   *   <li>Start with fresh application directory
   *   <li>Restore a wallet using the seed phrase and date stamp
   * </ul>
   */
  @Test
  public void verifyRestoreWallet_en_US_ColdStart() throws Exception {

    // Start with a completely empty random application directory
    arrangeFresh(Optional.<HardwareWalletFixture>absent());

    // Restore a wallet through the welcome wizard
    WelcomeWizardRestoreWallet_en_US_Requirements.verifyUsing(window);

    // Unlock the wallet
    QuickUnlockEmptyWalletFixtureRequirements.verifyUsing(window);
  }
Ejemplo n.º 3
0
  /**
   * Verify the following:
   *
   * <ul>
   *   <li>Start with standard application directory
   *   <li>Show the credentials unlock screen and click restore
   *   <li>Back out of the restore by selecting an existing wallet
   * </ul>
   */
  @Test
  public void verifyUseExistingWallet() throws Exception {

    // Start with the standard hardware wallet fixture
    arrangeStandard(Optional.<HardwareWalletFixture>absent());

    // Use  the welcome wizard
    WelcomeWizardUseExistingWalletRequirements.verifyUsing(window);

    // Unlock the wallet
    QuickUnlockEmptyWalletFixtureRequirements.verifyUsing(window);
  }
Ejemplo n.º 4
0
  /**
   * Verify the following:
   *
   * <ul>
   *   <li>Start with fresh application directory
   *   <li>Restore a wallet using the seed phrase and date stamp
   * </ul>
   */
  @Test
  public void verifyRestoreBeta7Wallet_en_US_ColdStart() throws Exception {

    // Start with a completely empty random application directory
    arrangeFresh(Optional.<HardwareWalletFixture>absent());

    // Set the configuration option to show 'Enable restore Beta7 wallets'
    Configurations.currentConfiguration.setShowRestoreBeta7Wallets(true);

    // Restore a wallet through the welcome wizard
    WelcomeWizardRestoreBeta7Wallet_en_US_Requirements.verifyUsing(window);

    // Unlock the wallet
    QuickUnlockEmptyWalletFixtureRequirements.verifyUsing(window);
  }