update test

This commit is contained in:
Beverly Nguyen
2024-02-23 14:59:25 -08:00
parent 0981990086
commit fd340ed105

View File

@@ -226,26 +226,22 @@ def test_notification_status_shows_expected_back_link(
[
(
"2012-01-01 06:01",
(
"Was sent on 1 January at 01:01 AM US/Eastern by Test User"
),
("sample template was sent by Test User today at 01:01 US/Eastern"),
),
(
"2012-01-02 06:01",
(
"Was sent on 1 January at 01:01 AM US/Eastern by Test User"
),
("sample template was sent by Test User yesterday at 01:01 US/Eastern"),
),
(
"2012-01-03 06:01",
(
"Was sent on 1 January at 01:01 AM US/Eastern by Test User"
"sample template was sent by Test User on 1 January at 01:01 US/Eastern"
),
),
(
"2013-01-03 06:01",
(
"Was sent on 1 January at 01:01 AM US/Eastern by Test User"
"sample template was sent by Test User on 1 January 2012 at 01:01 US/Eastern"
),
),
],
@@ -271,8 +267,6 @@ def test_notification_page_doesnt_link_to_template_in_tour(
notification_id=fake_uuid,
help=3,
)
p_text = normalize_spaces(page.select_one(".usa-alert__text").text)
assert p_text == normalize_spaces(expected_message)
assert len(page.select("main p:nth-of-type(1) a")) == 0