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 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()