コード例 #1
0
 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)
コード例 #2
0
 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
     )
コード例 #3
0
 def tearDown(self):
     page = SettingsPage(self.driver)
     page.change_email(self.email)
     wait_for_pop_up(self.driver)
     super().tearDown()