示例#1
0
 public function testSeeWithNonLatinAndSelectors()
 {
     $this->module->amOnPage('/info');
     $this->module->see('Текст', 'p');
     $this->module->seeLink('Ссылочка');
     $this->module->click('Ссылочка');
 }
 public function testExample1()
 {
     $this->module->amOnPage('/form/example1');
     $this->module->see('Login', 'button');
     $this->module->fillField('#LoginForm_username', 'davert');
     $this->module->fillField('#LoginForm_password', '123456');
     $this->module->checkOption('#LoginForm_rememberMe');
     $this->module->click('Login');
     $login = data::get('form');
     $this->assertEquals('davert', $login['LoginForm']['username']);
     $this->assertEquals('123456', $login['LoginForm']['password']);
     $this->assertNotEmpty($login['LoginForm']['rememberMe']);
 }