test(e2e): Logo 点击同样补 hydration 前置;§14.4 记录数据层自伤与两处真根因
- p2:136「Logo点击返回首页」在全量里 webkit 偶发 17.7s 超时,与 website-acceptance 「导航菜单功能正常」同根因:元素可见 ≠ 可交互,hydration 窗口内派发的 click 被丢弃。 补 expectHydrated(本仓既有约定,探 __reactProps$)后再点。 复算:4 project × 3 轮 = 12/12 passed;此前同轮 4/4 failed 是漏了 import,已修。 - §14.4 记录:跨 worktree 的绝对 DATABASE_URL 让旧代码 seed 覆盖本树整库 (§14.3 残差读数作废、AUTH-NAV 误判的源头),防线是 checkSeedTarget 的写前中止 + 活体负对照(外部库未被创建);以及 contact 5 次/小时限流的结构性 429 与 uj-08 面板动画 not stable 两处真根因。
This commit is contained in:
1 parent
5530add712
commit
3859d2a966
2 files changed
+36
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { test, expect } from "./fixtures";
|
||||
import { expectHydrated } from "./hydrated";
|
||||
import { primaryNav } from "./primary-nav";
|
||||
|
||||
/**
|
||||
@@ -144,6 +145,11 @@ test.describe("导航系统 - 路由与菜单", { tag: "@regression" }, () => {
|
||||
});
|
||||
const logoLink = page.locator('header a[aria-label="返回首页"]');
|
||||
await expect(logoLink).toBeVisible();
|
||||
// 2026-10-17(§14.4):与 website-acceptance「导航菜单功能正常」同一根因 ——
|
||||
// 元素可见 ≠ 已可交互;hydration 窗口内派发的 click 会被丢弃,随后 15s 轮询超时
|
||||
// (实测 webkit 偶发,日志形如 waitForURL 超时 / 停在原路径)。
|
||||
// 用本仓既有约定 expectHydrated(探 React 宿主对象上的 __reactProps$)等监听挂好再点。
|
||||
await expectHydrated(logoLink);
|
||||
await logoLink.click();
|
||||
await expect
|
||||
.poll(() => new URL(page.url()).pathname, { timeout: 15000 })
|
||||
|
||||
Reference in new issue
Block a user