[M19-P6] 全量 17 商人 × 3 难度差分测试与浏览器 E2E 闭环审计 #486

Closed
opened 2026-09-26 04:22:15 +00:00 by troytt · 1 comment
Owner

背景与目标

对 M19 商人 NPC 与交易经济系统进行全谱系自动化验证与浏览器 E2E 闭环审计。

核心验证项

  1. 17 商人 × 3 难度 × 多角色等级自动化差分审计:
    • 验证 Act 1~5 共 17 位商人 ID 在 Normal / Nightmare / Hell 与 cLvl = 1, 12, 20, 25, 30, 60, 90 下的库存生成合法性(无越界等级物品、ilvl >= 25 零白装、常驻药水/卷轴/箭袋齐全)。
    • 验证各类物品(普通、超强、劣质、魔法、亮金、暗金、套装、带 +3 技能 Staffmods 手杖/法杖、无形、职业专属)的售价与收购价严格符合 0x6FD9B1C0 公式及 Npc.txt 难度封顶。
  2. Playwright 浏览器端到端验证:
    • 启动本地开发服并在无头浏览器中实测点击城镇商人 NPC、打开交互菜单、切换四分页商店、购买药水/装备、出售背包物品、铁匠修理及凯恩鉴定全流程,确保 Console / PageError 为 0。

验收标准

  • 新增单元测试与 E2E 验证全部 100% 绿灯通过。
## 背景与目标 对 M19 商人 NPC 与交易经济系统进行全谱系自动化验证与浏览器 E2E 闭环审计。 ## 核心验证项 1. **17 商人 × 3 难度 × 多角色等级自动化差分审计**: - 验证 Act 1~5 共 17 位商人 ID 在 `Normal / Nightmare / Hell` 与 `cLvl = 1, 12, 20, 25, 30, 60, 90` 下的库存生成合法性(无越界等级物品、`ilvl >= 25` 零白装、常驻药水/卷轴/箭袋齐全)。 - 验证各类物品(普通、超强、劣质、魔法、亮金、暗金、套装、带 +3 技能 Staffmods 手杖/法杖、无形、职业专属)的售价与收购价严格符合 `0x6FD9B1C0` 公式及 `Npc.txt` 难度封顶。 2. **Playwright 浏览器端到端验证**: - 启动本地开发服并在无头浏览器中实测点击城镇商人 NPC、打开交互菜单、切换四分页商店、购买药水/装备、出售背包物品、铁匠修理及凯恩鉴定全流程,确保 Console / PageError 为 0。 ## 验收标准 - [ ] 新增单元测试与 E2E 验证全部 100% 绿灯通过。
troytt added this to the [M19] 原版商人 NPC 与交易经济系统 (1.13c Ground Truth) milestone 2026-09-26 04:22:15 +00:00
troytt changed title from [M15-P6] 全量 17 商人 × 3 难度差分测试与浏览器 E2E 闭环审计 to [M19-P6] 全量 17 商人 × 3 难度差分测试与浏览器 E2E 闭环审计 2026-09-26 04:24:35 +00:00
Author
Owner

Implemented and verified in commit 3b993cf (tsc --noEmit 0 errors, vitest 17/17 passing, headless Chrome UI verification passing).

Implemented and verified in commit `3b993cf` (`tsc --noEmit` 0 errors, `vitest` 17/17 passing, headless Chrome UI verification passing).
Sign in to join this conversation.
No Label
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#486
No description provided.