docs: capture hwlab playwright validation path
This commit is contained in:
@@ -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 / logs(k3s 诊断)
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user