Exemple #1
0
def test_bad_password():
    """ Tests logging in with a bad password. """
    pytest.sel.get(pytest.sel.base_url())
    login(conf.credentials["default"]["username"], "badpassword@#$")
    expected_error = "the username or password you entered is incorrect"
    assert login_page.is_displayed()
    assert expected_error in pytest.sel.text(login_page.flash)
Exemple #2
0
def test_logout(logged_in):
    """ Testst that the provder can be logged out of. """
    logout()
    assert login_page.is_displayed()