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.change_password( self.NEW_PASSWORD, self.NEW_PASSWORD_CONFIRM, self.PASSWORD ) wait_for_pop_up(self.driver)
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()