Added assert to check row error message

This commit is contained in:
Ken Tsang
2017-06-16 12:34:55 +01:00
parent 8997c95512
commit 8061d3f29d

View File

@@ -1568,6 +1568,10 @@ def test_non_ascii_characters_in_letter_recipients_file_shows_error(
'You need to fix 1 address '
'Skip to file contents'
)
assert page.select_one(
'#content > div.grid-row > main > table > tbody > '
'tr:nth-of-type(1) > td:nth-of-type(2) > div > span > span'
).get_text(strip=True) == u'Can\u2019t include \u041F, \u0435, \u0442 or \u044F'
def test_check_messages_redirects_if_no_upload_data(logged_in_client, service_one, mocker):