public function testRedirectWithGetParams() { $this->module->amOnPage('/redirect4'); $this->module->seeInCurrentUrl('/search?ln=test@gmail.com&sn=testnumber'); $params = data::get('params'); $this->assertContains('*****@*****.**', $params); }
public function testLinksWithDifferentContext() { $this->module->amOnPage('/'); $this->module->click('Test', '#area1'); $this->module->seeInCurrentUrl('/form/file'); $this->module->amOnPage('/'); $this->module->click('Test', '#area2'); $this->module->seeInCurrentUrl('/form/hidden'); }
public function testLoadPageApi() { $this->module->_loadPage('POST', '/form/try', ['user' => 'davert']); $data = data::get('form'); $this->assertEquals('davert', $data['user']); $this->module->see('Welcome to test app'); $this->module->click('More info'); $this->module->seeInCurrentUrl('/info'); }
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'); }
public function testMultipleCookies() { $this->module->amOnPage('/'); $this->module->sendAjaxPostRequest('/cookies'); $this->module->seeCookie('foo', 'bar1'); $this->module->seeCookie('baz', 'bar2'); $this->module->setCookie('foo', 'bar1'); $this->module->setCookie('baz', 'bar2'); $this->module->amOnPage('/cookies'); $this->module->seeInCurrentUrl('info'); }
public function testClick() { $this->module->amOnPage('/'); $this->module->click('More info'); $this->module->seeInCurrentUrl('/info'); }