Пример #1
0
 public function testAppendFieldRadioButtonByLabel()
 {
     $this->module->amOnPage('/form/radio');
     $this->module->appendField('form input[name=terms]', 'Get Off');
     $this->module->click('Submit');
     $form = data::get('form');
     $this->assertEquals('disagree', $form['terms']);
 }
Пример #2
0
 public function testSubmitUnchecked()
 {
     $this->module->amOnPage('/form/unchecked');
     $this->module->seeCheckboxIsChecked('#checkbox');
     $this->module->uncheckOption('#checkbox');
     $this->module->click('#submit');
     $this->module->see('0', '#notice');
 }
Пример #3
-1
 public function testScrollTo()
 {
     $this->module->amOnPage('/form/example18');
     $this->module->scrollTo('#clickme');
     $this->module->click('Submit');
     $this->module->see('Welcome to test app!');
 }