Ejemplo n.º 1
0
 def test_reset_password_short(self):
     """ Test ResetPassShort checks that passwords provided by user should be long enough """
     main_page = MainPage(self.driver)
     main_page.set_credential('555', *MainPageLocators.NEW_PASSWORD)
     main_page.set_credential('555', *MainPageLocators.CONFIRM_PASSWORD)
     main_page.click_confirm_button()
     text = main_page.return_message_value(*MainPageLocators.SHORT_PASS_MESSAGE)
     self.assertEquals(text, 'This value is too short. It should have 6 characters or more.', 'The messages are different!')  # Message parametrization will be required for localized site
Ejemplo n.º 2
0
 def test_reset_password_equal(self):
     """ Test ResetPassEqual checks that passwords provided by user should be equal """
     main_page = MainPage(self.driver)
     main_page.set_credential('555555', *MainPageLocators.NEW_PASSWORD)
     main_page.set_credential('666666', *MainPageLocators.CONFIRM_PASSWORD)
     main_page.click_confirm_button()
     text = main_page.return_message_value(*MainPageLocators.NON_EQUAL_MESSAGE)
     self.assertEquals(text, 'This value should be the same.', 'The messages are different!')  # Message parametrization will be required for localized site
Ejemplo n.º 3
0
 def test_empty_reset_password(self):
     """ Test ResetPassEmpty checks that user can't use empty password during resetting """
     main_page = MainPage(self.driver)
     main_page.set_credential('', *MainPageLocators.NEW_PASSWORD)
     main_page.set_credential('', *MainPageLocators.CONFIRM_PASSWORD)
     main_page.click_confirm_button()
     text = main_page.return_message_value(*MainPageLocators.EMAIL_PARSING_ERROR)
     self.assertEquals(text, 'This value is required.', 'The messages are different!')
     text = main_page.return_message_value(*MainPageLocators.PASSWORD_CONFIRM_ERROR)
     self.assertEquals(text, 'This value is required.', 'The messages are different!') # Message parametrization will be required for localized site