mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Reran reference tests and merged in main to fix conflicts
This commit is contained in:
@@ -185,7 +185,9 @@ def test_should_show_create_api_key_page(
|
||||
label = item.select_one(".usa-radio__label")
|
||||
hint = label.select_one(".usa-hint")
|
||||
# Get the label text without the hint text
|
||||
label_text = label.text.replace(hint.text, "").strip() if hint else label.text
|
||||
label_text = (
|
||||
label.text.replace(hint.text, "").strip() if hint else label.text
|
||||
)
|
||||
assert normalize_spaces(label_text) == option[0]
|
||||
assert normalize_spaces(hint.text) == option[1]
|
||||
else:
|
||||
|
||||
@@ -145,9 +145,7 @@ def test_default_email_sender_is_checked_and_has_hint(
|
||||
)
|
||||
|
||||
assert page.select(".usa-radio input")[0].has_attr("checked")
|
||||
assert (
|
||||
normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
)
|
||||
assert normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
assert not page.select(".usa-radio input")[1].has_attr("checked")
|
||||
|
||||
|
||||
@@ -162,9 +160,7 @@ def test_default_sms_sender_is_checked_and_has_hint(
|
||||
)
|
||||
|
||||
assert page.select(".usa-radio input")[0].has_attr("checked")
|
||||
assert (
|
||||
normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
)
|
||||
assert normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
assert not page.select(".usa-radio input")[1].has_attr("checked")
|
||||
|
||||
|
||||
@@ -179,9 +175,7 @@ def test_default_sms_sender_is_checked_and_has_hint_when_there_are_no_inbound_nu
|
||||
)
|
||||
|
||||
assert page.select(".usa-radio input")[0].has_attr("checked")
|
||||
assert (
|
||||
normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
)
|
||||
assert normalize_spaces(page.select_one(".usa-radio .usa-hint").text) == "(Default)"
|
||||
assert not page.select(".usa-radio input")[1].has_attr("checked")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user