mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 16:18:25 -04:00
Merge main fix conflicts
This commit is contained in:
@@ -354,10 +354,9 @@ def test_inbound_messages_shows_count_of_messages_when_there_are_no_messages(
|
||||
"(202) 867-5300 message-2 1 hour ago",
|
||||
"(202) 867-5300 message-3 1 hour ago",
|
||||
"(202) 867-5302 message-4 3 hours ago",
|
||||
"+33 1 12 34 56 78 message-5 5 hours ago",
|
||||
"+33(0)1 12345678 message-5 5 hours ago",
|
||||
"(202) 555-0104 message-6 7 hours ago",
|
||||
"(202) 555-0104 message-7 9 hours ago",
|
||||
"+682 12345 message-8 9 hours ago",
|
||||
]
|
||||
),
|
||||
)
|
||||
@@ -519,10 +518,10 @@ def test_download_inbox(
|
||||
"(202) 867-5300,message-2,07-01-2016 10:59 US/Eastern\r\n"
|
||||
"(202) 867-5300,message-3,07-01-2016 10:59 US/Eastern\r\n"
|
||||
"(202) 867-5302,message-4,07-01-2016 08:59 US/Eastern\r\n"
|
||||
"+33 1 12 34 56 78,message-5,07-01-2016 06:59 US/Eastern\r\n"
|
||||
"+33(0)1 12345678,message-5,07-01-2016 06:59 US/Eastern\r\n"
|
||||
"(202) 555-0104,message-6,07-01-2016 04:59 US/Eastern\r\n"
|
||||
"(202) 555-0104,message-7,07-01-2016 02:59 US/Eastern\r\n"
|
||||
"+682 12345,message-8,07-01-2016 02:59 US/Eastern\r\n"
|
||||
"+68212345,message-8,07-01-2016 02:59 US/Eastern\r\n"
|
||||
)
|
||||
|
||||
|
||||
@@ -655,7 +654,7 @@ def test_should_not_show_recent_templates_on_dashboard_if_only_one_template_used
|
||||
expected_count = stats[0]["count"]
|
||||
assert expected_count == 50
|
||||
assert normalize_spaces(page.select_one("#total-sms .big-number-smaller").text) == (
|
||||
"{} text messages sent".format(expected_count)
|
||||
"{} text messages sent in the last seven days".format(expected_count)
|
||||
)
|
||||
|
||||
|
||||
@@ -1058,16 +1057,9 @@ def test_usage_page_monthly_breakdown(
|
||||
monthly_breakdown = normalize_spaces(page.find("table").text)
|
||||
|
||||
assert "January" in monthly_breakdown
|
||||
|
||||
assert "October" in monthly_breakdown
|
||||
assert "February" in monthly_breakdown
|
||||
assert "$16.40" in monthly_breakdown
|
||||
assert "140 free text messages" in monthly_breakdown
|
||||
assert "960 text messages at 1.65p" in monthly_breakdown
|
||||
assert "33 text messages at 1.70p" in monthly_breakdown
|
||||
|
||||
assert "March" in monthly_breakdown
|
||||
assert "$20.91" in monthly_breakdown
|
||||
assert "1,230 text messages at 1.70p" in monthly_breakdown
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
@@ -1818,15 +1810,8 @@ def test_service_dashboard_shows_usage(
|
||||
|
||||
usage_table = page.find("table", class_="usage-table")
|
||||
|
||||
# Check if the "Usage" table exists
|
||||
assert usage_table is not None
|
||||
|
||||
table_rows = usage_table.find_all("tbody")[0].find_all("tr")
|
||||
|
||||
assert len(table_rows) == 1
|
||||
|
||||
assert "500" in table_rows[0].find_all("td")[0].text
|
||||
assert "9500" in table_rows[0].find_all("td")[1].text
|
||||
# Check if the "Usage" table doesn't exist
|
||||
assert usage_table is None
|
||||
|
||||
|
||||
def test_service_dashboard_shows_free_allowance(
|
||||
@@ -1861,7 +1846,7 @@ def test_service_dashboard_shows_free_allowance(
|
||||
|
||||
usage_text = normalize_spaces(page.select_one("[data-key=usage]").text)
|
||||
assert "spent on text messages" not in usage_text
|
||||
assert "Daily Usage Remaining 1,000 249,000" in usage_text
|
||||
assert "Daily Sent Remaining 1,000 249,000" in usage_text
|
||||
|
||||
|
||||
def test_service_dashboard_shows_batched_jobs(
|
||||
|
||||
Reference in New Issue
Block a user