From ff33c7c7f9400c79d370450b90a4daae5379065b Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Mon, 14 Aug 2023 15:29:10 -0400 Subject: [PATCH] Fixing tests --- tests/app/main/views/test_send.py | 4 ++-- tests/app/main/views/test_template_folders.py | 2 +- tests/app/main/views/test_templates.py | 2 +- tests/app/test_navigation.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 2bee0f6fe..a63beb59c 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -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( diff --git a/tests/app/main/views/test_template_folders.py b/tests/app/main/views/test_template_folders.py index 6c9b18bcf..e8d16eb6d 100644 --- a/tests/app/main/views/test_template_folders.py +++ b/tests/app/main/views/test_template_folders.py @@ -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) diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index 5899ed2f3..b9756ecfc 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -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) diff --git a/tests/app/test_navigation.py b/tests/app/test_navigation.py index 7afce65f3..419976590 100644 --- a/tests/app/test_navigation.py +++ b/tests/app/test_navigation.py @@ -427,7 +427,7 @@ def test_navigation_urls( ): page = client_request.get('main.choose_template', service_id=SERVICE_ONE_ID) assert [ - a['href'] for a in page.select('.nav.margin-y-5 a') + a['href'] for a in page.select('.nav a') ] == [ '/services/{}'.format(SERVICE_ONE_ID), '/services/{}/templates'.format(SERVICE_ONE_ID),