19 lines
632 B
Python
19 lines
632 B
Python
from pathlib import Path
|
|
import subprocess
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize("case", [
|
|
"closed_bootstrap", "coalesce_timeout", "aba_stale",
|
|
"account_hide_close", "errors_payload", "render_readonly",
|
|
])
|
|
def test_broadcast_readiness_frontend(case):
|
|
root = Path(__file__).resolve().parents[1]
|
|
result = subprocess.run(
|
|
["node", "tests/broadcast_readiness_frontend.cjs", case],
|
|
cwd=root, capture_output=True, text=True, timeout=15,
|
|
)
|
|
assert result.returncode == 0, result.stdout + result.stderr
|
|
assert f"PASS readiness frontend: {case}" in result.stdout, result.stdout + result.stderr
|