Fixing tests

This commit is contained in:
Jonathan Bobel
2025-02-25 12:23:56 -05:00
parent bb0d9a25b7
commit 2b07517e9c
2 changed files with 9 additions and 4 deletions

View File

@@ -388,7 +388,7 @@ def test_search_recipient_form(
query_dict = parse_qs(url.query)
assert query_dict == {}
assert page.select_one("label[for=to]").text.strip() == expected_search_box_label
assert page.select_one("label:contains('Search by')").text.strip() == expected_search_box_label
recipient_inputs = page.select("input[name=to]")
assert len(recipient_inputs) == 2
@@ -421,7 +421,7 @@ def test_api_users_are_told_they_can_search_by_reference_when_service_has_api_ke
service_id=SERVICE_ONE_ID,
message_type=message_type,
)
assert page.select_one("label[for=to]").text.strip() == expected_search_box_label
assert page.select_one("label:contains('Search by')").text.strip() == expected_search_box_label
@pytest.mark.parametrize(
@@ -448,7 +448,10 @@ def test_api_users_are_not_told_they_can_search_by_reference_when_service_has_no
service_id=SERVICE_ONE_ID,
message_type=message_type,
)
assert page.select_one("label[for=to]").text.strip() == expected_search_box_label
print(page.prettify())
assert page.select_one("label:contains('Search by')").text.strip() == expected_search_box_label
def test_should_show_notifications_for_a_service_with_next_previous(