fix(ci): observe reminder progress and capture painted desktop views
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user