Commit Graph

7 Commits

Author SHA1 Message Date
woan d08311151e 锁控制稳定性 + 回首页浮层识别 + 弹框Later + 三态控制对比工具
- lock_card/lock_control:解锁二次确认框解耦+轮询(checkbox 找不到也点 Unlock,修 Lock Pro/Lite 解锁);
  homeLockInfo 找卡前回顶(修 Lock Lite 停中间漏卡误判"找不到")
- android-driver.goBackToHomepage:浮层识别 —— 首页被快捷控制浮层盖住(有卡无 tab)时收浮层而非按 BACK,
  根治"RN 首页 BACK 退桌面 → 后续读到0卡片 → 412s 超时找不到卡片"(空净切模式根因)
- dismissPopupIfPresent:补 App 重启后 "Later" 弹框(Android 把 Later 家族加入触发词;iOS 加 RN 弹框 Later 兜底)
- 新增三态控制成功率对比:scripts/run-ctrl-3states.sh + scripts/gen-3state-report.py
- 汇入积压:功能页控制用例、home-card helper、relay switch、meter 报警校准、iOS radio 切换脚本等

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 11:06:59 +08:00
woan ae336e300f iOS P0 适配与稳定性修复 + 报告计数/重试增强
- iOS reset-except 重写:滚动找可删卡逐张/批量删(一批~10),跳过固定插件与删除异常项,NEVER_KEEP 让 Outdoor PTC 可删
- goBackToHomepage 修误触:isFullscreen 加 source.length<2500 闸(Preferences 不再误判全屏点进消息页),根 tab 页精确点 Home tab,加载守卫
- iOS WiFi 配网:轮询点"加入"系统框 + Available now 成功判定;扫地机 S1P relay 等 Second step 再按
- 卡片查找统一改"滚到找到/到底"(bot/plug/water control),修 34 设备首页找不到卡片
- 选品类慢滑防过冲;feedback 滚轮用 setPickerWheelValue;插件热更多行解析
- 报告:plug/curtain suite 带设备名 + PROTO 后缀(ble/wifi 各算一条,修用例总数偏低);总体成功率;控制/添加失败重试
- iOS 全 P0:补 keypad/平台/账号 TAIL + doorbell/outdoor_ptc + camera_stream Outdoor PTC

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 11:57:34 +08:00
woan c67f46992f feat: 新增多设备添加用例 + 灯类卡片控制(亮度/色温) + 选品类大小写不敏感
添加用例(真机验证通过, Android):
- 屋檐灯 Permanent Outdoor Lights(ch38/4s, 发现页流程)
- URC 万能遥控器(ch20+21 双键同按/4s, 发现页流程)
- Relay Switch 1(ch48/2s; 二级选型号 + Skip this guide + Select Device 选设备)
- AI Art Frame(ch46/3s, 流程同 AI Hub; 首页名 AI→Al 渲染坑用 "Art Frame" 匹配 + 升级弹框关闭)
- Hub 3(ch9+10 双键同按/5s, 发现页流程而非 Hub Mini 流程)
- Contact Sensor(ch47/6s 串口配对)
- 门铃 Video Doorbell(ch36+37 同按/5s) 注释更正

控制用例:
- 灯类首页卡片通用控制 eave_light_control(动态识别电源键+滑条; 亮度+色温; 边缘夹紧防返回手势)
  覆盖屋檐灯/RGBICWW Floor Lamp/RGBWW Floor Lamp/RGBWW Strip Light 3/Strip Light 4E/Color Bulb/Ceiling Light Pro

helper/config:
- selectDeviceCategory 大小写不敏感全字匹配(textMatches (?i))
- config/relay.config.ts 新增 eave_light/urc/strip_light_3/relay_switch/hub3/ai_art_frame 通道
- run-p0-all.sh 纳入上述 ADD/CONTROL

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 18:47:11 +08:00
woan d5c81826fb feat: 串口配对添加链路 + 多设备连接用例 + soak/继电器工具
- 设备添加: device-add.helper 串口配对主链路(addDeviceWithSerialPairing),
  按平台设备名注册表(device-registry.helper),hub/curtain/qr 专用 helper
- 新增多设备连接用例: remote、outdoor_meter、rn_plugin,刷新各品类 connect 用例
- 配置: relay.config(继电器通道/按键映射)、wifi.config(分平台配网凭据)
- 脚本: 夜间 soak(android/ios)、reset-devices、relay 控制与报告、调试脚本
- 工具: serial_controller 串口协议、zendesk/feedback/ones-anchor helper、test-reporter
- 杂项: 撤出追踪 .DS_Store / .claude 本地设置;.gitignore 忽略
  docs/ test-plan/ test_must_case/(生成产物/单独维护)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-09 14:14:37 +08:00
woan 373a8bd6fa feat: 必测项自动化锚点 + 动态设备锚点 + 双协议网络切换 + ONES mutation 回写
ONES 回写:
- ones-sync 改为 ones graphql mutation(updateTestcasePlanCase/Step),修复 token 打码导致的 401;支持 step 级回写、按 case 聚合
- gen-writeback-params.ts + ones-writeback-params.json:固化用例/步骤 uuid,给 plan 链接即可回写

必测项锚点(reporter.record 名带 [P0][ONES:号(#step)][协议],it 标题带 [ONES:号] 备注):
- 添加:15 个 connect
- 控制:bot/color_bulb/lock/plug/strip_light/fan/sensor/humidifier/ceiling_light/curtain/meter/urc(双协议,PROTO 切换)
- 同品类多型号:ones-anchor.helper 动态解析(curtain/lock/plug/sensor/humidifier/hub/meter/robot),换 <CAT>_DEVICE 重跑分别回写

双协议网络前置(network.helper + driver.activateApp):
- Android adb(svc wifi + am start 蓝牙设置点 switch_widget;实测 svc bluetooth 不可用)
- iOS 系统设置 UI(蓝牙 name=BLUETOOTH / WiFi name=无线局域网,iOS26.5 实测)

测试计划:generate_test_plan.py 重构为优先级四层(必测项→探索→全功能→平台)+ AI人力估算 + 双平台/夜测/硬件并行;去除机械臂4款(82→78)
提示词:must_test_conversion / ones_to_automation(含 iOS 快速连接) / test_plan_conversion

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-01 16:10:57 +08:00
woan e33b042c69 feat: AI Hub 测试完善 + ONES 同步 + 必测项转换提示词
- tests/aihub/*: 侦测/勿扰/回放/本地存储/日报/AI事件等用例修正与扩展,
  新增投屏(aihub_screen_casting)、AI Hub Show(tests/aihubshow/) 与 setup helper
- utils/ones-sync.ts + scripts/sync-ones-results.ts: 测试结果反写 ONES 测试计划
- drivers/hubshow-driver.ts、firmware/test-reporter helper、device.config 更新
- docs/: UI自动化测试计划 + 生成脚本
- prompts/: 新增 must_test_conversion.md 必测项专项子提示词,
  主提示词 ones_to_automation.md 增加子提示词组合引用

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-29 11:04:12 +08:00
woan cb274082ee feat: initial commit - AI UI Automation (Midscene + Vitest) 2026-05-27 18:50:22 +08:00