public function agentDelete() { $I = $this; $I->wantTo('delete agent'); $I->amOnPage(Registration::$employees_list_url); $I->waitForElement(AgencyEmployees::$listFirstAgent); $I->click(AgencyEmployees::$agentDeleteBtn); $I->wait(2); $I->acceptDeleteUserModal(); $I->reloadPage(); $I->wait(3); $I->cantSee(User::getCurrentAgentEmail(), AgencyEmployees::$listFirstAgent); }
function loginAgent() { // if ($this->getScenario()->current('env') != 'firefox') { if ($this->loadSessionSnapshot('agent_login')) { return; } // } $this->amOnPage(Login::$URL); $this->waitForElement(Login::$email); $this->fillField(Login::$email, User::getCurrentAgentEmail()); $this->fillField(Login::$pass, User::$agentPass); $this->click(Login::$submitLoginBtn); $this->wait(3); //$this->seeElement("//img[@alt='$this->agencyChiefFName $this->agencyChiefLName']"); $this->saveSessionSnapshot('agent_login'); }