Update tests so they work with the fix

This commit is contained in:
Pea Tyczynska
2019-05-29 16:40:23 +01:00
parent 21ab8638b9
commit 4905be510f

View File

@@ -1126,7 +1126,7 @@ def test_send_one_off_or_test_has_correct_page_titles(
@pytest.mark.parametrize('endpoint, step_index, prefilled, expected_field_label', [ @pytest.mark.parametrize('endpoint, step_index, prefilled, expected_field_label', [
( (
'main.send_test_step', 'main.send_test_step',
0, 1,
{'phone number': '07900900123'}, {'phone number': '07900900123'},
'one', 'one',
), ),
@@ -1138,7 +1138,7 @@ def test_send_one_off_or_test_has_correct_page_titles(
), ),
( (
'main.send_test_step', 'main.send_test_step',
1, 2,
{'phone number': '07900900123', 'one': 'foo'}, {'phone number': '07900900123', 'one': 'foo'},
'two', 'two',
), ),
@@ -1150,7 +1150,7 @@ def test_send_one_off_or_test_has_correct_page_titles(
), ),
( (
'main.send_test_step', 'main.send_test_step',
2, 3,
{'phone number': '07900900123', 'one': 'foo', 'two': 'foo'}, {'phone number': '07900900123', 'one': 'foo', 'two': 'foo'},
'three', 'three',
), ),
@@ -1809,7 +1809,7 @@ def test_send_test_indicates_optional_address_columns(
) )
assert normalize_spaces(page.select('label')[0].text) == ( assert normalize_spaces(page.select('label')[0].text) == (
'address line 4 ' # step_index is 0-indexed so step 3 is address line 4 'address line 3 '
'Optional' 'Optional'
) )
assert page.select('.govuk-back-link')[0]['href'] == url_for( assert page.select('.govuk-back-link')[0]['href'] == url_for(