Example #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)
Example #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())
Example #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())
Example #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())
Example #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())
Example #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())
Example #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())
Example #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
Example #12
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_phone_popup_cancel()
Example #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()
Example #16
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).confirm_phone_popup_empty_code(self.PHONE)
Example #17
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).add_phone_popup_change_country()
Example #18
0
 def test(self):
     AuthSteps(self.driver).auth()
     ContactsSteps(self.driver).confirm_phone_popup_invalid_code(self.PHONE, self.CODE)
Example #19
0
    def test(self):
        AuthSteps(self.driver).auth()

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