Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. @pytest.mark.jira("JIRA-2730", run=False)
  2. @pytest.mark.parametrize(
  3. argnames="credentials",
  4. argvalues=[
  5. Credentials(username="autotest@pochta.com", password="UNKNOWN_PASSWORD"),
  6. Credentials(username="UNKNOWN@USER.com", password="UNKNOWN_PASSWORD")
  7. ],
  8. ids=[
  9. "Wrong password",
  10. "Not existing user"
  11. ]
  12. )
  13. def test_unable_to_login_with_unknown_credentials(login_page, credentials):
  14. """
  15. Check that user unable to log in bank guarantees by unknown name, password pair
  16. """
  17. login_page = login_page.login(credentials)
  18.  
  19. actual_authorization_error = login_page.get_authorization_error()
  20.  
  21. assert actual_authorization_error == "Неправильный логин или пароль!"
  22. assert "Вход в систему" in login_page.page_source, "User stayed not in login page after failed login attempt!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement