doNestedTriggerTests example


  public function testJavascriptStates() {
    $this->doCheckboxTriggerTests();
    $this->doCheckboxesTriggerTests();
    $this->doTextfieldTriggerTests();
    $this->doRadiosTriggerTests();
    $this->doSelectTriggerTests();
    $this->doMultipleTriggerTests();
    $this->doNestedTriggerTests();
  }

  /** * Tests states of elements triggered by a checkbox element. */
  protected function doCheckboxTriggerTests() {
    $this->drupalGet('form-test/javascript-states-form');
    $page = $this->getSession()->getPage();

    // Find trigger and target elements.     $trigger = $page->findField('checkbox_trigger');
    
Home | Imprint | This part of the site doesn't use cookies.