Advance simulation parity and 3-axis tutorial coverage
This commit is contained in:
@@ -15,6 +15,7 @@ from typing import Any
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
REPORT = ROOT / "coverage/gui-browser-visual-fe-m4.report.json"
|
||||
VISUAL_ROOT = ROOT / "coverage/axis3-tutorial-visual"
|
||||
URL = "http://127.0.0.1:5174/"
|
||||
|
||||
|
||||
@@ -59,11 +60,10 @@ def probe(size: str, screenshot: Path) -> dict[str, Any]:
|
||||
|
||||
|
||||
def generate() -> dict[str, Any]:
|
||||
with tempfile.TemporaryDirectory(prefix="linuxcnc-gui-visual-") as directory:
|
||||
root = Path(directory)
|
||||
desktop = probe("1440,900", root / "desktop.png")
|
||||
mobile = probe("390,844", root / "mobile.png")
|
||||
outputs = [{"viewport": "desktop", "bytes": desktop["screenshot"]["bytes"], "sha256": desktop["screenshot"]["sha256"]}, {"viewport": "mobile", "bytes": mobile["screenshot"]["bytes"], "sha256": mobile["screenshot"]["sha256"]}]
|
||||
VISUAL_ROOT.mkdir(parents=True, exist_ok=True)
|
||||
desktop = probe("1440,900", VISUAL_ROOT / "chromium-desktop.png")
|
||||
mobile = probe("390,844", VISUAL_ROOT / "chromium-mobile.png")
|
||||
outputs = [{"viewport": "desktop", "bytes": desktop["screenshot"]["bytes"], "sha256": desktop["screenshot"]["sha256"]}, {"viewport": "mobile", "bytes": mobile["screenshot"]["bytes"], "sha256": mobile["screenshot"]["sha256"]}]
|
||||
report: dict[str, Any] = {
|
||||
"schema": "gui-browser-visual-fe-m4-report.v1",
|
||||
"task_id": "FE-M4-GUI-06",
|
||||
|
||||
Reference in New Issue
Block a user