Exemplo n.º 1
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_theme(self.theme)
     wait_for_pop_up(self.driver)
     wait_for_element_attribute_change(self.driver, 'html', 'theme',
                                       self.theme.split()[0])
     super().tearDown()
Exemplo n.º 2
0
 def test(self):
     page = SettingsPage(self.driver)
     self.theme = page.get_theme()
     page.change_theme(self.THEME)
     wait_for_pop_up(self.driver)
     wait_for_element_attribute_change(self.driver, 'html', 'theme',
                                       self.THEME.split()[0])
 def test(self):
     page = SettingsPage(self.driver)
     page.change_password(self.NEW_PASSWORD, self.NEW_PASSWORD_CONFIRM,
                          self.PASSWORD)
     wait_for_element_attribute_change(self.driver, PASSWORD_ERROR,
                                       'innerText',
                                       PASSWORD_ERROR_NO_OLD_MESSAGE)
Exemplo n.º 4
0
 def test(self):
     page = SettingsPage(self.driver)
     page.load_avatar(self.BIG_AVATAR_PATH)
     self.assertEqual(
         self.driver.find_element_by_id(AVATAR_ERROR_ID).get_attribute('innerText'),
         AVATAR_ERROR_SIZE_MESSAGE
     )
Exemplo n.º 5
0
 def test(self):
     page = SettingsPage(self.driver)
     page.change_password(
         self.NEW_PASSWORD,
         self.NEW_PASSWORD_CONFIRM,
         self.PASSWORD
     )
     wait_for_pop_up(self.driver)
Exemplo n.º 6
0
 def test(self):
     page = SettingsPage(self.driver)
     page.change_email('')
     wait_for_element_attribute_change(
         self.driver,
         PROFILE_DATA_EMAIL_ERROR,
         'innerText',
         PROFILE_DATA_EMAIL_ERROR_EMPTY_MESSAGE
     )
Exemplo n.º 7
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_password(
         self.PASSWORD,
         self.PASSWORD,
         self.NEW_PASSWORD
     )
     wait_for_pop_up(self.driver)
     super().tearDown()
Exemplo n.º 8
0
 def test(self):
     page = SettingsPage(self.driver)
     page.open_containers()
     self.language = page.get_language()
     page.change_language(self.LANGUAGE)
     page.open_containers()
     WebDriverWait(
         self.driver, 10,
         0.1).until(lambda driver: page.get_language() == self.LANGUAGE)
     pass
Exemplo n.º 9
0
 def test(self):
     page = SettingsPage(self.driver)
     self.email = page.get_email()
     page.change_email(self.VALID_EMAIL)
     wait_for_pop_up(self.driver)
     page.refresh()
     self.assertEqual(page.get_email(), self.VALID_EMAIL)
Exemplo n.º 10
0
 def test(self):
     page = SettingsPage(self.driver)
     self.name = page.get_name()
     page.change_name(self.VALID_NAME)
     wait_for_pop_up(self.driver)
     page.refresh()
     self.assertEqual(
         page.get_name(),
         self.VALID_NAME
     )
Exemplo n.º 11
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_language(self.language)
     page.open_containers()
     WebDriverWait(
         self.driver, 10,
         0.1).until(lambda driver: page.get_language() == self.language)
     super().tearDown()
Exemplo n.º 12
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_email(self.email)
     wait_for_pop_up(self.driver)
     super().tearDown()
Exemplo n.º 13
0
 def test(self):
     page = SettingsPage(self.driver)
     page.change_name('')
     wait_for_element_attribute_change(self.driver, PROFILE_DATA_NAME_ERROR,
                                       'innerText',
                                       PROFILE_DATA_NAME_ERROR_MESSAGE)
Exemplo n.º 14
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_name(self.name)
     wait_for_pop_up(self.driver)
     super().tearDown()
Exemplo n.º 15
0
 def test(self):
     page = SettingsPage(self.driver)
     page.load_avatar(self.SMALL_AVATAR_PATH)
     wait_for_pop_up(self.driver)