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';
|
||||
@@ -20,7 +21,7 @@ const disposers = [], t = { after: fn => disposers.push(fn) }, f = fixture(t), c
|
||||
let host, controller, browser, application, page, window, result;
|
||||
const dialog = () => page.getByRole('dialog', { name: '模型中心', exact: true });
|
||||
const mark = name => { checks.push(name); console.log('PASS ' + name); };
|
||||
async function open() { if (!await dialog().count()) await page.getByRole('button', { name: '打开模型中心', exact: true }).click(); }
|
||||
async function open() { if (!await dialog().count()) await openWorkbenchTool(page, '打开模型中心'); }
|
||||
async function resize(width) {
|
||||
if (window) { await window.evaluate((win, size) => win.setContentSize(size.width, size.height), { width, height: 1080 }); await until(() => page.evaluate(w => innerWidth === w, width)); }
|
||||
else await page.setViewportSize({ width, height: 1080 });
|
||||
|
||||
Reference in New Issue
Block a user