44import requests
55from playwright .sync_api import expect
66
7- FOOTER_TEXT = "Internet.nl is an initiative of the Internet community and the Dutch "
7+ FOOTER_TEXT = "Ga naar onze Mastodon profiel "
88
99SECURITY_TXT_TEXT = "Policy: https://internet.nl/disclosure/"
1010
@@ -19,7 +19,7 @@ def test_index_http_ok(page, app_url):
1919def test_index_footer_text_present (page , app_url ):
2020 """Branding is disabled on develop, so no footer text, only version"""
2121 page .goto (app_url )
22- footer = page .locator ("# footer" )
22+ footer = page .locator (". footer-bar " )
2323
2424 expect (footer ).not_to_have_text (re .compile (FOOTER_TEXT ))
2525
@@ -41,14 +41,14 @@ def test_static_files(page, app_url):
4141
4242
4343def test_generated_css_static_files (page , app_url ):
44- response = requests .get (app_url + "/static/css/style .css" , verify = False )
44+ response = requests .get (app_url + "/static/css/print .css" , verify = False )
4545 response .raise_for_status ()
46- assert "@font-face " in response .text
46+ assert "#site-description " in response .text ()
4747 assert "expires" in response .headers
4848
4949
5050def test_generated_js_static_files (page , app_url ):
51- response = requests .get (app_url + "/static/js/menu -min.js" , verify = False )
51+ response = requests .get (app_url + "/static/js/theme -min.js" , verify = False )
5252 response .raise_for_status ()
53- assert "hideMenuButton " in response .text
53+ assert "setTheme " in response .text ()
5454 assert "expires" in response .headers
0 commit comments