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()
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)
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 )
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)
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 )
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()
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
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)
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 )
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()
def tearDown(self): page = SettingsPage(self.driver) page.change_email(self.email) wait_for_pop_up(self.driver) super().tearDown()
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)
def tearDown(self): page = SettingsPage(self.driver) page.change_name(self.name) wait_for_pop_up(self.driver) super().tearDown()
def test(self): page = SettingsPage(self.driver) page.load_avatar(self.SMALL_AVATAR_PATH) wait_for_pop_up(self.driver)