feat: introduce Orven brand and task-focused workspace
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { openWorkbenchTool } from './ui-navigation.mjs';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import net from 'node:net';
|
||||
@@ -33,7 +34,7 @@ page.on('pageerror', error => errors.push(error.message));
|
||||
let result;
|
||||
const mark = value => { checks.push(value); console.log('PASS ' + value); };
|
||||
const capture = async name => { const file = path.join(root, name + '.png'); await page.screenshot({ path: file, fullPage: true }); screenshots.push(file); };
|
||||
const open = async () => { await page.getByRole('button', { name: '打开模型中心', exact: true }).click(); const dialog = page.getByRole('dialog', { name: '模型中心', exact: true }); await expect(dialog).toBeVisible(); return dialog; };
|
||||
const open = async () => { await openWorkbenchTool(page, '打开模型中心'); const dialog = page.getByRole('dialog', { name: '模型中心', exact: true }); await expect(dialog).toBeVisible(); return dialog; };
|
||||
const tab = dialog => dialog.getByRole('navigation', { name: '模型中心分类' }).getByRole('button', { name: '连接诊断', exact: true });
|
||||
const panel = () => page.getByRole('region', { name: '模型连接诊断', exact: true });
|
||||
const start = async () => { await panel().getByRole('button', { name: '开始直连检查', exact: true }).click(); };
|
||||
|
||||
Reference in New Issue
Block a user