Skip to content

Commit 4051aba

Browse files
committed
Changed refresh alerts link test to use f string
1 parent e318b0b commit 4051aba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_home_page_links.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ def test_home_page_links_navigation(page: Page) -> None:
5252
# Click the refresh alerts link
5353
homepage.click_refresh_alerts_link()
5454
# Verify that the 'last updated' timestamp matches the current date and time
55-
(expect(page.locator("form[name=\"refreshCockpit\"]")).to_contain_text
56-
("Refresh alerts (last updated :" + DateTimeUtils.current_datetime()))
55+
expect(page.locator("form[name=\"refreshCockpit\"]")).to_contain_text(
56+
f"Refresh alerts (last updated :{DateTimeUtils.current_datetime()})"
57+
)
5758

5859
# Click the user guide link
5960
with page.expect_popup() as page1_info:

0 commit comments

Comments
 (0)