示例#1
0
    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)
示例#2
0
    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())
示例#3
0
    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())
示例#4
0
    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())
示例#6
0
    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())
示例#7
0
    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())
示例#8
0
    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())
示例#10
0
    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
示例#12
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_phone_popup_cancel()
示例#13
0
 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()
示例#16
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).confirm_phone_popup_empty_code(self.PHONE)
示例#17
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_phone_popup_change_country()
示例#18
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).confirm_phone_popup_invalid_code(self.PHONE, self.CODE)
示例#19
0
    def test(self):
        AuthSteps(self.driver).auth()

        ContactsSteps(self.driver).refresh_page_add_email(self.EMAIL)
示例#20
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).func_delete_email()
示例#21
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_phone_popup_invalid_number(self.PHONE)
示例#22
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).func_add_email(self.EMAIL)
示例#23
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_email_popup_close()
示例#24
0
 def test(self):
     AuthSteps(self.driver).auth()