mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
fixed test and e2e
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user