docs(web): clarify sidebar hover setup
This commit is contained in:
1 parent
09b83c3c53
commit
64be7f033b
4 files changed
+5
-4
No files matched your search
@@ -6,8 +6,8 @@
|
||||
en: 3e8ecd3509fa944f
|
||||
zh: 3fd3ff9fcd1e1e90
|
||||
/apps-web-browser-e2e/completion-observations:
|
||||
en: 6f8629c8d036f142
|
||||
zh: 21c10231c062817c
|
||||
en: 97cefc8839aea4c5
|
||||
zh: 0f719c9064b249ab
|
||||
/apps-web-browser-e2e/these-are-host-face-tests:
|
||||
en: 8c406d423c8e2137
|
||||
zh: a66a144fd146f56c
|
||||
|
||||
@@ -24,7 +24,7 @@ Plugin-manager and HMR lifecycle switches wait up to `PLUGIN_TOGGLE_SETTLE_MS` (
|
||||
|
||||
Explicit scrolling uses `scrollIntoView` from `support.ts`: it resolves the locator again when its old element detaches and checks connection in the same browser task as native scrolling. Scenarios retain their visibility and geometry assertions after scrolling.
|
||||
|
||||
[Sidebar keyboard snapshots](shortcuts-panels.e2e.ts) move the pointer outside the controls and wait for hover tooltips to close before capture. Keyboard focus remains on the pane.
|
||||
[The snapshot after closing a sidebar pane](shortcuts-panels.e2e.ts) moves the pointer outside the controls and waits for hover tooltips to close before capture. Keyboard focus remains on the pane.
|
||||
|
||||
## These are Host-face tests
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ pnpm --filter @deepseek-ai/dsh-web-frontend exec playwright install --with-deps
|
||||
|
||||
显式滚动使用 `support.ts` 的 `scrollIntoView`:旧元素脱离 DOM 时重新解析 locator,并在同一个浏览器任务中检查连接状态、执行原生滚动。各场景保留滚动后的可见性与几何断言。
|
||||
|
||||
[侧栏键盘快照](shortcuts-panels.e2e.ts)在捕获前将指针移出控件,并等待悬停提示关闭。键盘焦点保持在窗格上。
|
||||
[侧栏窗格关闭后的快照](shortcuts-panels.e2e.ts)在捕获前将指针移出控件,并等待悬停提示关闭。键盘焦点保持在窗格上。
|
||||
|
||||
## 这些是 Host 面的测试
|
||||
|
||||
|
||||
@@ -282,6 +282,7 @@ describe.skipIf(process.platform === 'win32')('Web sidebar shortcuts', () => {
|
||||
await panel.getByRole('button', { name: 'Fullscreen', exact: true }).click()
|
||||
await panel.locator('[data-dockkit-split-button]').click()
|
||||
await expect.poll(() => panel.locator('[data-dockkit-pane]').count()).toBe(2)
|
||||
// Pane closure can leave the Split tooltip open beneath the stationary pointer.
|
||||
await right.locator('[data-dockkit-split-button]').locator('..').hover()
|
||||
await page.getByRole('tooltip', { name: 'Two panes is the limit', exact: true }).waitFor()
|
||||
await (closeFirst === 'left' ? left : right).getByRole('tab').focus()
|
||||
|
||||
Reference in new issue
Block a user