feat: introduce Orven brand and task-focused workspace
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { openWorkbenchTool } from './ui-navigation.mjs';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
@@ -155,7 +156,7 @@ try {
|
||||
await page.reload({ waitUntil: 'domcontentloaded' });
|
||||
await expect(page.locator('.work-title h1')).toHaveText(second.title);
|
||||
const downloadPromise = page.waitForEvent('download');
|
||||
await page.getByRole('button', { name: '导出会话', exact: true }).click();
|
||||
await openWorkbenchTool(page, '导出会话');
|
||||
const download = await downloadPromise; await download.saveAs(path.join(caseRoot, 'session-export.json'));
|
||||
assert.equal(JSON.parse(fs.readFileSync(path.join(caseRoot, 'session-export.json'), 'utf8')).session.id, second.id);
|
||||
mark('denial, session selection, reload, stale response rejection and export');
|
||||
@@ -200,7 +201,7 @@ try {
|
||||
|
||||
stage = 'research'; await page.setViewportSize({ width: 1440, height: 960 });
|
||||
if (!(await page.locator('.project-sidebar').isVisible())) await page.getByRole('button', { name: '展开项目栏', exact: true }).click();
|
||||
await page.getByRole('button', { name: '机制研究与设计', exact: true }).click();
|
||||
await openWorkbenchTool(page, '机制研究与设计');
|
||||
const research = page.getByRole('dialog', { name: '机制研究与独立设计' });
|
||||
await expect(research.locator('.research-content')).toContainText('统一机制报告');
|
||||
assert.ok(await research.locator('table').count() >= 2);
|
||||
|
||||
Reference in New Issue
Block a user