This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user