"""Test easter egg - Gradio 6 html_template/js_on_load API.""" from __future__ import annotations def test_easter_egg_implementation(): from hearthnet.ui.app import _EGG_JS, _EGG_HTML # CSS is now injected via js_on_load (document.head.appendChild) assert ".hn-ticker" in _EGG_JS assert ".hn-ticker.hn-on" in _EGG_JS assert "@keyframes hn-scroll" in _EGG_JS assert ".hn-modal" in _EGG_JS assert "hn-egg-styles" in _EGG_JS # idempotent guard assert "hn-ticker" in _EGG_HTML assert "hn-modal" in _EGG_HTML assert "hn-iframe" in _EGG_HTML assert "