Exemplo n.º 1
0
 public function testLinksWithSimilarNames()
 {
     $this->module->amOnPage('/');
     $this->module->click('Test Link');
     $this->module->seeInCurrentUrl('/form/file');
     $this->module->amOnPage('/');
     $this->module->click('Test');
     $this->module->seeInCurrentUrl('/form/hidden');
 }
Exemplo n.º 2
0
 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']);
 }
Exemplo n.º 3
0
 public function testLinksWithNonLatin()
 {
     $this->module->amOnPage('/info');
     $this->module->seeLink('Ссылочка');
     $this->module->click('Ссылочка');
 }