"""Tests for DOM graph page rendering."""
from src.templates import render_dom_graph_page
import tempfile
import os
class TestDOMGraphPage:
def test_render_dom_graph_page_svg(self):
"""Test rendering page with SVG graph."""
# Create temporary SVG file
with tempfile.NamedTemporaryFile(mode='w', suffix='.svg', delete=False) as f:
f.write('')
temp_path = f.name
try:
html = render_dom_graph_page(temp_path)
assert html
assert "DOM" in html
assert "Visualization" in html or "Graph" in html
assert '