用途:为 VS Code 扩展编写、迭代和调试 Playwright 端到端测试,并管理 scratch org 与测试产物分析。
主要能力:提供 playwright-vscode-ext 共享代码(helpers、locators、配置);支持多种桌面工作区形态(无文件夹打开、空工作区、工作区含默认 org、多包目录无 org);支持 VSIX 模式(useVsix,安装已构建 VSIX 并以 --extensions-dir 启动,需先运行 vscode:package);支持 Code Builder 容器模式(createContainerConfig、createContainerTest,使用 CODE_BUILDER_URL,默认 http://localhost:8123);支持 span 文件调试(输出到 ~/.sf/vscode-spans/,web-.jsonl 与 node-.jsonl,自动启用);支持遥测检查(O11y spans 与 AppInsights 事件);提供 Apex OAS E2E 测试说明与 A4V LLM 限流跳过机制。
使用方式:先阅读 references 下 coding-playwright-tests.md、local-setup.md、iterating-playwright-tests.md、analyze-e2e.md;用 sf org list 检查 org 别名(如 minimalTestOrg、nonTrackingTestOrg、orgBrowserDreamhouseTestOrg),缺失时按 local-setup.md 创建;运行 npm run test:web、test:desktop 等,AI 执行时不应阻塞超过 30 秒,建议后台运行;迭代时可通过 branches-ignore 与 --grep 过滤 CI 工作流。
限制:不要用剪贴板设置编辑器内容,应直接键入、写盘或通过命令设置模型值;桌面测试优先轮询磁盘产物而非易失的 UI 提示;A4V LLM 月度限流应跳过而非失败;OAS REST 生成需运行时注册 LLM 服务(A4V),AuraEnabled 路径仅需活动 org。其余细节暂未提供。