Skip to content

Commit aca744b

Browse files
committed
test: align HTTP warning expectation
1 parent 3f71e2f commit aca744b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/login_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,10 @@ def test_plugin_page_assets() -> None:
630630
"page does not read credentials",
631631
)
632632
check("Authorization" not in app, "page does not handle Dashboard tokens")
633-
check("location.protocol" in app and "HTTPS" in app, "page warns on plain HTTP")
633+
check(
634+
"transport-warning" not in html and "location.protocol" not in app,
635+
"page does not render an HTTP warning",
636+
)
634637

635638

636639
def main() -> int:

0 commit comments

Comments
 (0)