mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 03:53:13 -04:00
Update tests so they work with the fix
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user