from pathlib import Path import shutil import subprocess import pytest def test_assigned_penalty_display_with_real_runtime_functions(): node = shutil.which("node") if node is None: pytest.skip("Install Node for the browser regression") result = subprocess.run([node, str(Path(__file__).with_name("hotfix_penalty_visibility.cjs"))], capture_output=True, text=True, timeout=10) assert result.returncode == 0, result.stdout + result.stderr