mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Fix tests
This commit is contained in:
@@ -55,11 +55,11 @@ def test_letters_lets_in_without_permission(
|
|||||||
@pytest.mark.parametrize('permissions, choices', [
|
@pytest.mark.parametrize('permissions, choices', [
|
||||||
(
|
(
|
||||||
['email', 'sms', 'letter'],
|
['email', 'sms', 'letter'],
|
||||||
['Email template', 'Text message template', 'Letter template', 'Copy of an existing template']
|
['Email', 'Text message', 'Letter', 'Copy an existing template']
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
['email', 'sms'],
|
['email', 'sms'],
|
||||||
['Email template', 'Text message template', 'Copy of an existing template']
|
['Email', 'Text message', 'Copy an existing template']
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
def test_given_option_to_add_letters_if_allowed(
|
def test_given_option_to_add_letters_if_allowed(
|
||||||
|
|||||||
@@ -290,9 +290,9 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
|
|||||||
'sms',
|
'sms',
|
||||||
'copy-existing',
|
'copy-existing',
|
||||||
], [
|
], [
|
||||||
'Email template',
|
'Email',
|
||||||
'Text message template',
|
'Text message',
|
||||||
'Copy of an existing template',
|
'Copy an existing template',
|
||||||
]),
|
]),
|
||||||
pytest.param(['letter'], [
|
pytest.param(['letter'], [
|
||||||
'email',
|
'email',
|
||||||
@@ -300,10 +300,10 @@ def test_should_show_live_search_if_service_has_lots_of_folders(
|
|||||||
'letter',
|
'letter',
|
||||||
'copy-existing',
|
'copy-existing',
|
||||||
], [
|
], [
|
||||||
'Email template',
|
'Email',
|
||||||
'Text message template',
|
'Text message',
|
||||||
'Letter template',
|
'Letter',
|
||||||
'Copy of an existing template',
|
'Copy an existing template',
|
||||||
]),
|
]),
|
||||||
))
|
))
|
||||||
def test_should_show_new_template_choices_if_service_has_folder_permission(
|
def test_should_show_new_template_choices_if_service_has_folder_permission(
|
||||||
@@ -327,7 +327,7 @@ def test_should_show_new_template_choices_if_service_has_folder_permission(
|
|||||||
raise ElementNotFound()
|
raise ElementNotFound()
|
||||||
|
|
||||||
assert normalize_spaces(page.select_one('#add_new_template_form fieldset legend').text) == (
|
assert normalize_spaces(page.select_one('#add_new_template_form fieldset legend').text) == (
|
||||||
'Add new'
|
'New template'
|
||||||
)
|
)
|
||||||
assert [
|
assert [
|
||||||
choice['value'] for choice in page.select('#add_new_template_form input[type=radio]')
|
choice['value'] for choice in page.select('#add_new_template_form input[type=radio]')
|
||||||
|
|||||||
Reference in New Issue
Block a user