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';
|
||||
@@ -45,7 +46,7 @@ async function shot(name) {
|
||||
screenshots.push({ path: file, sha256: createHash('sha256').update(fs.readFileSync(file)).digest('hex') });
|
||||
fs.writeFileSync(path.join(directory, name + '.txt'), await page.locator('body').innerText());
|
||||
}
|
||||
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 add() { await open(); await dialog().getByRole('button', { name: '从上游添加模型', exact: true }).click(); await catalog().waitFor(); }
|
||||
async function fetchModels() { await catalog().getByRole('button', { name: /获取上游模型|重新获取模型目录/ }).click(); await expect(catalog().getByLabel('上游模型列表', { exact: true })).toBeVisible(); }
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user