예제 #1
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
     )
예제 #2
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)
예제 #3
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_name(self.name)
     wait_for_pop_up(self.driver)
     super().tearDown()