docs: capture hwlab playwright validation path

This commit is contained in:
Codex
2026-06-14 12:46:24 +00:00
parent c00f22eab5
commit 6418d7ace6
3 changed files with 16 additions and 2 deletions
+10
View File
@@ -129,6 +129,16 @@ trans G14:/root/hwlab download /root/remote-file.txt ./local-file.txt
自动校验 SHA-256,结果中 `verified=true` 即完整性证明。
### playwright(远端浏览器验收)
```bash
trans D601 playwright --local-dir /tmp <<'PW'
playwright-cli screenshot https://example.com "$UNIDESK_PLAYWRIGHT_SCREENSHOT" --full-page
PW
```
`playwright` 读取 stdin heredoc,在目标 host/workload 上注入临时 `playwright-cli` wrapper,并把远端 run 目录中的截图/PDF 回传到本机 `--local-dir`,默认 `/tmp`。多步登录、创建 session、发送消息和 trace 截图应写在同一个 heredoc 中,并显式等待登录 API response 与稳定 selector;不要只靠宽泛 input selector 或页面标题判断登录成功。
### kubectl / logsk3s 诊断)
```bash