Show midnight change below heading
pull-request / validate (pull_request) Successful in 12s

This commit is contained in:
2026-09-17 14:53:05 +02:00
parent b5bbde8acb
commit 0c86cf3b59
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -41,6 +41,10 @@ def test_home_updates_title_from_latest_price():
assert "document.title = price + ' | ' + formattedChange" in response.text
assert '<h1 class="text-3xl font-bold text-gray-900">BTC Price</h1>' in response.text
assert "page-title" not in response.text
assert 'id="midnight-change"' in response.text
assert "midnightChange.textContent = formattedChange" in response.text
assert "since 00:00" not in response.text
assert "change > 0 ? 'text-green-600' : change < 0 ? 'text-red-600'" in response.text
assert "formatPriceChange(change)" in response.text
assert "midnight.setHours(0, 0, 0, 0)" in response.text