feat: complete native BOM and Harness execution acceptance
This commit is contained in:
1 parent
4f8fbd7806
commit
65438cb7e5
234 files changed
+24402
-865
No files matched your search
@@ -15,6 +15,17 @@ async function wait(expression,timeout=30000){
|
||||
}
|
||||
try{
|
||||
await wait(`!!document.querySelector('[contenteditable="true"]')`,50000);
|
||||
const workspaceIndex=process.argv.indexOf('--workspace-root');
|
||||
if(workspaceIndex>=0){
|
||||
const directory=path.resolve(process.argv[workspaceIndex+1]);
|
||||
await c.click(`document.querySelector('button[aria-label="添加工作区"]')`);
|
||||
// The parent driver handles the real Win32 folder chooser.
|
||||
await wait(`!!document.querySelector('button[aria-label="在“${path.basename(directory)}”中新建会话"]')`,60000);
|
||||
await wait(`!document.querySelector('[role="dialog"]')&&!!document.querySelector('[contenteditable="true"]')`);
|
||||
await c.screenshot(path.join(output,'working-folder-workspace.png'));
|
||||
report.workspace_directory=directory;
|
||||
report.checks.push('selected real engineering folder as Harness workspace through directory picker mouse and keyboard');
|
||||
}
|
||||
await c.click(`document.querySelector('[contenteditable="true"]')`);
|
||||
const prompt='帮我建个换料任务,名字叫“DSH对话换料验收”,备注写“真实对话验收”。把 OLD123 换成 NEW456,料号也复制到 Value。工程目录我来选,先别开始替换。建好后告诉我数量和任务编号。';
|
||||
report.prompt=prompt;
|
||||
|
||||
Reference in new issue
Block a user