Пример #1
0
  /** Is testing that is testing that the regex is working Only allowing letters and numbers */
  public void testAddNameRegex() {
    TouchUtils.tapView(this, this.nameEdit);

    super.sendKeys("R U N E ");
    super.getInstrumentation().waitForIdleSync();
    super.sendKeys(KeyEvent.KEYCODE_APOSTROPHE);

    super.getInstrumentation().waitForIdleSync();
    TouchUtils.clickView(this, this.checkInButton);
    super.getInstrumentation().waitForIdleSync();

    activity.getInputName();
    assertEquals("rune", activity.getInputName());
  }