change dashboard test to reflect demo changes to uploads view

This commit is contained in:
jimmoffet
2022-09-09 17:02:48 -07:00
parent 740470f6bd
commit 69abec0bb3
28 changed files with 127 additions and 183 deletions

View File

@@ -131,7 +131,7 @@ def test_should_return_200_when_email_is_not_gov_uk(
@pytest.mark.parametrize('email_address', (
'notfound@example.gsa.gov',
'example@lsquo.net',
pytest.param('example@lsquo.net', marks=pytest.mark.xfail(raises=AssertionError)),
pytest.param('example@ellipsis.com', marks=pytest.mark.xfail(raises=AssertionError)),
))
def test_should_add_user_details_to_session(
@@ -151,9 +151,9 @@ def test_should_add_user_details_to_session(
_data={
'name': 'Test Codes',
'email_address': email_address,
'mobile_number': '+4407700900460',
'mobile_number': '+17733541500',
'password': 'validPassword!'
},
}
)
with client_request.session_transaction() as session:
assert session['user_details']['email'] == email_address