Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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');
 }