Fixing tests

This commit is contained in:
Jonathan Bobel
2023-08-14 15:29:10 -04:00
parent ffafc16430
commit ff33c7c7f9
4 changed files with 5 additions and 5 deletions

View File

@@ -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(

View File

@@ -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)

View File

@@ -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)