mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Fixing tests
This commit is contained in:
@@ -59,7 +59,7 @@ def test_show_correct_title_and_description_for_email_sender_type(
|
||||
template_id=fake_uuid
|
||||
)
|
||||
|
||||
assert page.select_one('.govuk-fieldset__legend h1').text.strip() == 'Where should replies come back to?'
|
||||
assert page.select_one('.usa-fieldset h1').text.strip() == 'Where should replies come back to?'
|
||||
|
||||
|
||||
def test_show_correct_title_and_description_for_sms_sender_type(
|
||||
@@ -74,7 +74,7 @@ def test_show_correct_title_and_description_for_sms_sender_type(
|
||||
template_id=fake_uuid
|
||||
)
|
||||
|
||||
assert page.select_one('.govuk-fieldset__legend h1').text.strip() == 'Who should the message come from?'
|
||||
assert page.select_one('.usa-fieldset h1').text.strip() == 'Who should the message come from?'
|
||||
|
||||
|
||||
def test_default_email_sender_is_checked_and_has_hint(
|
||||
|
||||
@@ -407,7 +407,7 @@ def test_should_show_templates_folder_page(
|
||||
assert links_in_page[index].text.strip() == expected_link
|
||||
|
||||
all_page_items = page.select('.template-list-item')
|
||||
all_page_items_styled_with_checkboxes = page.select('.template-list-item.govuk-checkboxes__item')
|
||||
all_page_items_styled_with_checkboxes = page.select('.usa-checkbox.template-list-item')
|
||||
|
||||
assert len(all_page_items) == len(all_page_items_styled_with_checkboxes)
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ def test_should_show_page_for_choosing_a_template(
|
||||
for index, expected_link in enumerate(expected_nav_links):
|
||||
assert links_in_page[index].text.strip() == expected_link
|
||||
|
||||
template_links = page.select('#template-list .govuk-label a, .template-list-item a')
|
||||
template_links = page.select('#template-list a, .template-list-item a')
|
||||
|
||||
assert len(template_links) == len(expected_templates)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user