public function testCancelPopup() { $this->module->amOnPage('/form/popup'); $this->module->click('Confirm'); $this->module->cancelPopup(); $this->module->see('No', '#result'); }
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'); }
public function testAppendFieldDiv() { $this->module->amOnPage('/form/div_content_editable'); //make sure we see 'sunrise' which is the default text in the textarea $this->module->see('sunrise', '#description'); //fill in some new text and see if we can see it $textarea_value = 'moonrise'; $this->module->appendField('#description', $textarea_value); $this->module->see('sunrise' . $textarea_value, '#description'); }
public function testScrollTo() { $this->module->amOnPage('/form/example18'); $this->module->scrollTo('#clickme'); $this->module->click('Submit'); $this->module->see('Welcome to test app!'); }