def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() gender_before, gender_after = profile_steps.change_gender() self.assertNotEqual(gender_before, gender_after)
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_name(self.LONG_NAME) profile_steps.save() self.assertEqual(self.LONG_STRING_ERROR, profile_steps.name_error_message())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_name(self.NAME) profile_steps.save() self.assertEqual(self.ERROR, profile_steps.empty_name_error())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.future_burthday() profile_steps.save() self.assertEqual(self.BIRTH_ERROR, profile_steps.birth_error())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.upload_photo_button() profile_steps.choose_photo(self.PHOTO) self.assertEqual(self.ERROR, profile_steps.photo_size_error())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_name(self.NAME) profile_steps.save() self.assertEqual(self.NAME, profile_steps.get_name())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_city(self.WRONG_CITY) profile_steps.save() self.assertEqual(self.CITY_ERROR, profile_steps.city_error())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_birthday() profile_steps.save() self.assertEqual(self.DAY, profile_steps.get_day())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.set_city(self.CITY_PREFIX) profile_steps.suggest_city() profile_steps.save() self.assertEqual(self.SUGGESTION, profile_steps.get_city())
def test(self): driver = self.driver AuthSteps(driver).auth() profile_steps = ProfileSteps(self.driver) profile_steps.open() profile_steps.upload_photo_button() profile_steps.choose_photo(self.PHOTO) profile_steps.cross_pop_up() assert "No results found." not in driver.page_source
def test(self): driver = self.driver mainsteps = MainSteps(driver) mainsteps.open() mainsteps.button_signin() driver.switch_to.frame(driver.find_element_by_css_selector('[class="ag-popup__frame__layout__iframe"]')) AuthSteps(driver).auth_main_page() mainsteps_after_auth = MainSteps(driver) mainsteps_after_auth.ref_auth_main_button() mainsteps_after_auth.ref_auth_account_info() assert "No results found." not in driver.page_source
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).add_phone_popup_cancel()
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).add_email_popup_invalid_email(self.EMAIL)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).confirm_phone_popup_change_number( self.PHONE)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).func_delete_reserved_number()
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).confirm_phone_popup_empty_code(self.PHONE)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).add_phone_popup_change_country()
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).confirm_phone_popup_invalid_code(self.PHONE, self.CODE)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).refresh_page_add_email(self.EMAIL)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).func_delete_email()
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).add_phone_popup_invalid_number(self.PHONE)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).func_add_email(self.EMAIL)
def test(self): AuthSteps(self.driver).auth() ContactsSteps(self.driver).add_email_popup_close()
def test(self): AuthSteps(self.driver).auth()