chore: drop unrelated browser harness documentation edits

This commit is contained in:
_Kerman committed 2026-10-20 11:51:15 +08:00
1 parent 4aaaec34ef
commit 7e405ec818
4 files changed
+4 -8

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write apps/web/tests/README.md
/apps-web-browser-e2e:
en: c4936273ca1d0691
zh: 70ef15b41fbcb4bc
en: 3e8ecd3509fa944f
zh: 3fd3ff9fcd1e1e90
/apps-web-browser-e2e/completion-observations:
en: 1f9c004f3eb465fb
zh: 3e45ef8014bad48d
-2
View File
@@ -14,8 +14,6 @@ On Linux, `--with-deps` installs dependencies through the system package manager
Ordinary scenarios begin with no registered Workspace or Session and a durable marker recording a removed default Workspace, so explicit folder-selection scenarios retain control of their cwd. `launchWebScaffold({ firstUse: true })` leaves initialization eligible for startup scenarios.
Scenarios whose output depends on workspace-path length set `workspacePathLength` to keep the JSON-quoted temporary root the same length across hosts. This stabilizes compaction estimates and trajectory previews that truncate before path normalization; each root still comes from `mkdtemp`.
## Completion observations
State-sensitive cases use Workspace, admission, attachment, and model-stream barriers to separate visible intermediate states from completed operations. Model-picker persistence assertions wait for the saved default, independently of menu closure. Details close waits for frame transitions; archive verification assigns an explicit title to the seeded Session and follows that identity across reload. The [CI test reliability workflow](../../../.agents/skills/dsh-ci-test-reliability/SKILL.md#synchronize-on-state) owns these synchronization rules.
-2
View File
@@ -14,8 +14,6 @@ pnpm --filter @deepseek-ai/dsh-web-frontend exec playwright install --with-deps
普通场景以没有已登记 Workspace 或 Session、但持久化标记记录默认 Workspace 已被删除的状态启动,使显式文件夹选择场景自行决定 cwd。`launchWebScaffold({ firstUse: true })` 保留初始化资格,供启动场景使用。
工作目录路径长度会影响输出的场景通过 `workspacePathLength` 固定临时根目录经 JSON 引用后的长度,使其在不同主机上一致。这能稳定压缩估算,以及在路径归一化前截断的轨迹预览;各根目录仍由 `mkdtemp` 分配。
## 完成状态观察
依赖状态的用例使用 Workspace、接纳、附件和模型流屏障,区分可见中间状态与已完成操作。模型选择器的持久化断言等待默认设置保存完成,不以菜单关闭作为完成信号。详情关闭等待框架过渡结束;归档验证为 seed Session 设置显式标题,并跨重载跟踪该身份。[CI 测试可靠性工作流](../../../.agents/skills/dsh-ci-test-reliability/SKILL.md#synchronize-on-state)负责这些同步规则。
+2 -2
View File
@@ -310,7 +310,7 @@ export interface LaunchOptions {
openInAppEnvironment?: LaunchEnvironmentSnapshot
/** Compare the replayed root Session; `read-only` also forbids refresh writes to a borrowed fixture. */
compareReplaySession?: boolean | 'read-only'
/** Fixed JSON-quoted workspace path length for compaction estimates and bounded previews; omitted uses the ordinary prefix. */
/** Fixed JSON-quoted workspace path length for compaction estimates; omitted values use the ordinary prefix. */
workspacePathLength?: number
/**
* Optional product overlay applied after the shipped Web surface and before
@@ -522,7 +522,7 @@ export async function launchWebScaffold(options: LaunchOptions = {}): Promise<We
if (options.workspacePathLength !== undefined) {
// mkdtemp appends six characters; JSON quoting is part of the runtime-context text.
const paddingLength = options.workspacePathLength - JSON.stringify(join(workspaceParent, `${workspacePrefix}XXXXXX`)).length
if (paddingLength < 0) throw new Error('snapshot temporary root exceeds its fixed cwd text length')
if (paddingLength < 0) throw new Error('compaction snapshot temporary root exceeds its fixed cwd text length')
workspacePrefix += '-'.repeat(paddingLength)
}
const workspaceCwd = await realpath(await mkdtemp(join(workspaceParent, workspacePrefix)))