fixed test and e2e

This commit is contained in:
Beverly Nguyen
2025-03-13 21:49:40 -07:00
parent 41dcedd48f
commit 371fbb2cd4
4 changed files with 15 additions and 6 deletions

View File

@@ -488,7 +488,9 @@ def test_show_switch_service_to_count_as_live_page(
# Extract label text and see if it matches the expected label
label_texts = [label.text.strip() for label in labels]
assert labelled in label_texts, f"Expected label '{labelled}' not found. Found labels: {label_texts}"
assert (
labelled in label_texts
), f"Expected label '{labelled}' not found. Found labels: {label_texts}"
@pytest.mark.parametrize(

View File

@@ -388,7 +388,10 @@ def test_search_recipient_form(
query_dict = parse_qs(url.query)
assert query_dict == {}
assert page.select_one("label:contains('Search by')").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 +424,10 @@ 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:contains('Search by')").text.strip() == expected_search_box_label
assert (
page.select_one("label:contains('Search by')").text.strip()
== expected_search_box_label
)
@pytest.mark.parametrize(
@@ -449,7 +455,10 @@ def test_api_users_are_not_told_they_can_search_by_reference_when_service_has_no
message_type=message_type,
)
assert page.select_one("label:contains('Search by')").text.strip() == expected_search_box_label
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(

View File

@@ -122,7 +122,6 @@ EXCLUDED_ENDPOINTS = tuple(
"integration_testing",
"invite_org_user",
"invite_user",
"join_notify",
"link_service_to_organization",
"live_services",
"live_services_csv",

View File

@@ -40,7 +40,6 @@ def test_landing_page(end_to_end_context):
content_headers = [
"Government texting made easy",
"Key features",
"Who can use Notify.gov",
]
for content_header in content_headers: