fix(ci): observe reminder progress and capture painted desktop views

This commit is contained in:
Agent Workbench Dev
2026-11-08 00:08:31 +08:00
parent 87ca075175
commit 4a03ec528a
7 changed files with 75 additions and 10 deletions
+3 -1
View File
@@ -3,7 +3,9 @@
export async function openWorkbenchTool(page, name) {
const aliases = { '打开模型中心': '选择与管理模型', '项目MCP工具': '项目 MCP 工具' };
const direct = page.getByRole('button', { name: aliases[name] ?? name, exact: true });
if (await direct.first().isVisible()) { await direct.first().click(); return; }
// The sidebar becomes inert after a responsive resize. The persistent
// toolbox is the model-center entry at both desktop and narrow widths.
if (name !== '打开模型中心' && await direct.first().isVisible()) { await direct.first().click(); return; }
await page.getByRole('button', { name: '打开工具箱', exact: true }).click();
const toolbox = page.getByRole('dialog', { name: '工具箱', exact: true });
const actionName = name === '打开模型中心' ? '模型中心' : aliases[name] ?? name;