/** Verifies that clicking cancel with data present gives a Yes/No popover */
  private void verifyCancel() {

    // Click Cancel
    window.button(MessageKey.CANCEL.getKey()).click();

    // Expect Yes/No popup)
    window.button(MessageKey.YES.getKey()).requireVisible().requireEnabled();

    window.button("popover_" + MessageKey.CLOSE.getKey()).requireVisible().requireEnabled();

    // Click Cancel
    window.button(MessageKey.NO.getKey()).requireVisible().requireEnabled().click();
  }
  @Override
  public void execute(Map<String, Object> parameters) {

    // TODO Link the hardware wallet fixture
    // Start the attach use case

    // Allow time for the view to react
    Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS);

    // Check that an alert message is present
    assertLabelContainsValue("alert_message_label", MessageEventFixtures.STANDARD_LABEL);

    // Check the 'Yes' button on the alert is present and click it
    window.button(MessageKey.YES.getKey()).click();

    // Allow time for the switch to take place
    pauseForWalletSwitch();

    // Verify the "credentials" wizard appears after a switch in Trezor mode

    window.label(MessageKey.TREZOR_UNLOCK_TITLE.getKey()).requireVisible();
  }