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) 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_email(self.email) wait_for_pop_up(self.driver) super().tearDown()