Example #1
0
 function loginAgencyTmp()
 {
     //        if ($this->getScenario()->current('env') != 'firefox') {
     if ($this->loadSessionSnapshot('loginAgency')) {
         return;
     }
     //        }
     $this->amOnPage(Login::$URL);
     $this->waitForElement(Login::$email);
     $this->fillField(Login::$email, User::getCurrentAgencyEmail());
     $this->fillField(Login::$pass, User::$agencyPass2);
     $this->click(Login::$submit);
     $this->wait(3);
     //$this->seeElement("//img[@alt='$this->agencyChiefFName $this->agencyChiefLName']");
     $this->saveSessionSnapshot('loginAgency');
 }
Example #2
0
 public function checkAgencyRegistration()
 {
     $I = $this;
     $I->wantTo('check registration of agency');
     $I->amOnPage(AdminUsersList::$users_list_url);
     $I->wait(2);
     $I->waitForElement(AdminUsersList::$searchByName);
     $I->fillField(AdminUsersList::$searchByName, User::getCurrentAgencyEmail());
     $I->click(AdminUsersList::$filterUsersBtn);
     $I->wait(2);
     $I->see(User::getCurrentAgencyEmail(), AdminUsersList::$agencyEmail);
     $I->wait(2);
     $I->click(AdminUsersList::$changeUserStatusBtn);
     $I->wait(2);
     $I->click(AdminUsersList::$statusesSelectClick);
     $I->wait(1);
     $I->fillField(AdminUsersList::$statusesSelect, AdminUsersList::$activeStateWord);
     $I->pressKey(AdminUsersList::$statusesSelect, WebDriverKeys::ENTER);
     $I->click(AdminUsersList::$submitStatusChangeBtn);
 }
Example #3
0
 function checkAgencyEditProfile()
 {
     $agencyFirstName = User::$agencyfirstNameEdit;
     $agencyLastName = User::$agencylastNameEdit;
     $this->wantTo('check edited agency profile');
     $this->reloadPage();
     $this->wait(3);
     $this->waitForElement(EditProfiles::$agencyName);
     $this->seeInField(EditProfiles::$agencyName, User::$agencyNameEdit);
     $this->seeInField(EditProfiles::$agencySubdomain, User::getCurrentSubdomain());
     $this->seeInField(EditProfiles::$firstName, User::$agencyfirstNameEdit);
     $this->seeInField(EditProfiles::$lastName, User::$agencylastNameEdit);
     $this->seeElement("//img[@alt='{$agencyFirstName} {$agencyLastName}']");
     $this->seeInField(EditProfiles::$email, User::getCurrentAgencyEmail());
     $about_text = $this->grabValueFrom(EditProfiles::$agencyAbout);
     $this->seeInDescriptionField($about_text);
     $this->seeInField(EditProfiles::$agencyOfficeName0, User::$agencyOfficeName0Edit);
     $this->seeInField(EditProfiles::$agencyAddressName0, User::$agencyAddressName0Edit);
     $this->seeInField(EditProfiles::$agencyCabinet0, User::$agencyCabinet0Edit);
     $this->seeInField(EditProfiles::$agencyPhoneNumber1, User::$agencyOfficePhoneNumberEdit0_0);
     $this->seeInField(EditProfiles::$agencySocialVk, User::$agencySocialEmpty);
     $this->seeInField(EditProfiles::$agencySocialTw, User::$agencySocialTw);
 }