@sun-asterisk/sungen 3.2.32 → 3.2.34-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (503) hide show
  1. package/dist/cli/commands/audit.d.ts +5 -0
  2. package/dist/cli/commands/audit.d.ts.map +1 -1
  3. package/dist/cli/commands/audit.js +64 -11
  4. package/dist/cli/commands/audit.js.map +1 -1
  5. package/dist/cli/commands/capability.d.ts.map +1 -1
  6. package/dist/cli/commands/capability.js +40 -18
  7. package/dist/cli/commands/capability.js.map +1 -1
  8. package/dist/cli/commands/changed.d.ts.map +1 -1
  9. package/dist/cli/commands/changed.js +2 -3
  10. package/dist/cli/commands/changed.js.map +1 -1
  11. package/dist/cli/commands/dashboard.d.ts.map +1 -1
  12. package/dist/cli/commands/dashboard.js +2 -28
  13. package/dist/cli/commands/dashboard.js.map +1 -1
  14. package/dist/cli/commands/defect.d.ts +7 -0
  15. package/dist/cli/commands/defect.d.ts.map +1 -0
  16. package/dist/cli/commands/defect.js +68 -0
  17. package/dist/cli/commands/defect.js.map +1 -0
  18. package/dist/cli/commands/delivery.d.ts.map +1 -1
  19. package/dist/cli/commands/delivery.js +113 -59
  20. package/dist/cli/commands/delivery.js.map +1 -1
  21. package/dist/cli/commands/generate.d.ts.map +1 -1
  22. package/dist/cli/commands/generate.js +14 -7
  23. package/dist/cli/commands/generate.js.map +1 -1
  24. package/dist/cli/commands/results-merge.d.ts +9 -0
  25. package/dist/cli/commands/results-merge.d.ts.map +1 -1
  26. package/dist/cli/commands/results-merge.js +9 -12
  27. package/dist/cli/commands/results-merge.js.map +1 -1
  28. package/dist/cli/commands/results-sanitize.d.ts.map +1 -1
  29. package/dist/cli/commands/results-sanitize.js +2 -13
  30. package/dist/cli/commands/results-sanitize.js.map +1 -1
  31. package/dist/cli/commands/select.d.ts +12 -0
  32. package/dist/cli/commands/select.d.ts.map +1 -0
  33. package/dist/cli/commands/select.js +122 -0
  34. package/dist/cli/commands/select.js.map +1 -0
  35. package/dist/cli/commands/triage.d.ts +7 -0
  36. package/dist/cli/commands/triage.d.ts.map +1 -0
  37. package/dist/cli/commands/triage.js +98 -0
  38. package/dist/cli/commands/triage.js.map +1 -0
  39. package/dist/cli/commands/update.d.ts.map +1 -1
  40. package/dist/cli/commands/update.js +3 -0
  41. package/dist/cli/commands/update.js.map +1 -1
  42. package/dist/cli/commands/viewpoint.d.ts +7 -0
  43. package/dist/cli/commands/viewpoint.d.ts.map +1 -0
  44. package/dist/cli/commands/viewpoint.js +70 -0
  45. package/dist/cli/commands/viewpoint.js.map +1 -0
  46. package/dist/cli/index.js +13 -2
  47. package/dist/cli/index.js.map +1 -1
  48. package/dist/dashboard/snapshot-builder.d.ts.map +1 -1
  49. package/dist/dashboard/snapshot-builder.js +6 -10
  50. package/dist/dashboard/snapshot-builder.js.map +1 -1
  51. package/dist/dashboard/templates/index.html +1 -1
  52. package/dist/dashboard/types.d.ts +1 -0
  53. package/dist/dashboard/types.d.ts.map +1 -1
  54. package/dist/exporters/csv-exporter.d.ts +4 -0
  55. package/dist/exporters/csv-exporter.d.ts.map +1 -1
  56. package/dist/exporters/csv-exporter.js +12 -11
  57. package/dist/exporters/csv-exporter.js.map +1 -1
  58. package/dist/exporters/feature-parser.d.ts +29 -0
  59. package/dist/exporters/feature-parser.d.ts.map +1 -1
  60. package/dist/exporters/feature-parser.js +44 -1
  61. package/dist/exporters/feature-parser.js.map +1 -1
  62. package/dist/exporters/json-exporter.d.ts.map +1 -1
  63. package/dist/exporters/json-exporter.js +7 -0
  64. package/dist/exporters/json-exporter.js.map +1 -1
  65. package/dist/exporters/locale-variants.d.ts +7 -1
  66. package/dist/exporters/locale-variants.d.ts.map +1 -1
  67. package/dist/exporters/locale-variants.js +23 -16
  68. package/dist/exporters/locale-variants.js.map +1 -1
  69. package/dist/exporters/manual-hybrid-oracle.d.ts +54 -0
  70. package/dist/exporters/manual-hybrid-oracle.d.ts.map +1 -0
  71. package/dist/exporters/manual-hybrid-oracle.js +114 -0
  72. package/dist/exporters/manual-hybrid-oracle.js.map +1 -0
  73. package/dist/exporters/matrix/build.d.ts.map +1 -1
  74. package/dist/exporters/matrix/build.js +68 -19
  75. package/dist/exporters/matrix/build.js.map +1 -1
  76. package/dist/exporters/matrix/carry-manual-results.d.ts +89 -0
  77. package/dist/exporters/matrix/carry-manual-results.d.ts.map +1 -0
  78. package/dist/exporters/matrix/carry-manual-results.js +302 -0
  79. package/dist/exporters/matrix/carry-manual-results.js.map +1 -0
  80. package/dist/exporters/matrix/export.d.ts +9 -1
  81. package/dist/exporters/matrix/export.d.ts.map +1 -1
  82. package/dist/exporters/matrix/export.js +21 -3
  83. package/dist/exporters/matrix/export.js.map +1 -1
  84. package/dist/exporters/matrix/gates.js +6 -0
  85. package/dist/exporters/matrix/gates.js.map +1 -1
  86. package/dist/exporters/matrix/render-csv.js +1 -1
  87. package/dist/exporters/matrix/render-csv.js.map +1 -1
  88. package/dist/exporters/matrix/render-testcase-sheet.d.ts.map +1 -1
  89. package/dist/exporters/matrix/render-testcase-sheet.js +10 -4
  90. package/dist/exporters/matrix/render-testcase-sheet.js.map +1 -1
  91. package/dist/exporters/matrix/render-xlsx.d.ts.map +1 -1
  92. package/dist/exporters/matrix/render-xlsx.js +3 -0
  93. package/dist/exporters/matrix/render-xlsx.js.map +1 -1
  94. package/dist/exporters/matrix/types.d.ts +13 -1
  95. package/dist/exporters/matrix/types.d.ts.map +1 -1
  96. package/dist/exporters/matrix/types.js.map +1 -1
  97. package/dist/exporters/matrix/wording.d.ts +8 -1
  98. package/dist/exporters/matrix/wording.d.ts.map +1 -1
  99. package/dist/exporters/matrix/wording.js +37 -2
  100. package/dist/exporters/matrix/wording.js.map +1 -1
  101. package/dist/exporters/playwright-report-parser.d.ts.map +1 -1
  102. package/dist/exporters/playwright-report-parser.js +1 -0
  103. package/dist/exporters/playwright-report-parser.js.map +1 -1
  104. package/dist/exporters/run-environment.d.ts +32 -0
  105. package/dist/exporters/run-environment.d.ts.map +1 -0
  106. package/dist/exporters/run-environment.js +125 -0
  107. package/dist/exporters/run-environment.js.map +1 -0
  108. package/dist/exporters/scenario-merger.d.ts +18 -0
  109. package/dist/exporters/scenario-merger.d.ts.map +1 -1
  110. package/dist/exporters/scenario-merger.js +49 -3
  111. package/dist/exporters/scenario-merger.js.map +1 -1
  112. package/dist/exporters/test-data-resolver.d.ts +0 -4
  113. package/dist/exporters/test-data-resolver.d.ts.map +1 -1
  114. package/dist/exporters/test-data-resolver.js +0 -7
  115. package/dist/exporters/test-data-resolver.js.map +1 -1
  116. package/dist/exporters/types.d.ts +5 -0
  117. package/dist/exporters/types.d.ts.map +1 -1
  118. package/dist/exporters/xlsx-exporter.d.ts +2 -0
  119. package/dist/exporters/xlsx-exporter.d.ts.map +1 -1
  120. package/dist/exporters/xlsx-exporter.js +7 -2
  121. package/dist/exporters/xlsx-exporter.js.map +1 -1
  122. package/dist/generators/gherkin-parser/index.d.ts +11 -4
  123. package/dist/generators/gherkin-parser/index.d.ts.map +1 -1
  124. package/dist/generators/gherkin-parser/index.js +49 -19
  125. package/dist/generators/gherkin-parser/index.js.map +1 -1
  126. package/dist/generators/test-generator/adapters/adapter-interface.d.ts +4 -0
  127. package/dist/generators/test-generator/adapters/adapter-interface.d.ts.map +1 -1
  128. package/dist/generators/test-generator/adapters/appium/templates/steps/actions/reinstall-app-action.hbs +2 -2
  129. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/label-value-assertion.hbs +8 -2
  130. package/dist/generators/test-generator/adapters/appium/templates/steps/assertions/visible-with-role-variable-assertion.hbs +7 -3
  131. package/dist/generators/test-generator/adapters/appium/templates/test-file.hbs +68 -4
  132. package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/click-select-action.hbs +1 -1
  133. package/dist/generators/test-generator/adapters/playwright/templates/steps/actions/select-action.hbs +1 -1
  134. package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/label-value-assertion.hbs +7 -1
  135. package/dist/generators/test-generator/adapters/playwright/templates/steps/assertions/visible-with-role-variable-assertion.hbs +8 -4
  136. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/pick-option.hbs +13 -0
  137. package/dist/generators/test-generator/adapters/playwright/templates/steps/partials/url-assertion.hbs +5 -1
  138. package/dist/generators/test-generator/adapters/playwright/templates/test-file.hbs +16 -0
  139. package/dist/generators/test-generator/code-generator.d.ts +2 -1
  140. package/dist/generators/test-generator/code-generator.d.ts.map +1 -1
  141. package/dist/generators/test-generator/code-generator.js +90 -5
  142. package/dist/generators/test-generator/code-generator.js.map +1 -1
  143. package/dist/generators/test-generator/diagnostics.d.ts +36 -5
  144. package/dist/generators/test-generator/diagnostics.d.ts.map +1 -1
  145. package/dist/generators/test-generator/diagnostics.js +35 -4
  146. package/dist/generators/test-generator/diagnostics.js.map +1 -1
  147. package/dist/generators/test-generator/patterns/index.d.ts +12 -2
  148. package/dist/generators/test-generator/patterns/index.d.ts.map +1 -1
  149. package/dist/generators/test-generator/patterns/index.js +15 -9
  150. package/dist/generators/test-generator/patterns/index.js.map +1 -1
  151. package/dist/generators/test-generator/patterns/types.d.ts +15 -0
  152. package/dist/generators/test-generator/patterns/types.d.ts.map +1 -1
  153. package/dist/generators/test-generator/patterns/with-parent-scope.d.ts +5 -0
  154. package/dist/generators/test-generator/patterns/with-parent-scope.d.ts.map +1 -1
  155. package/dist/generators/test-generator/patterns/with-parent-scope.js +6 -0
  156. package/dist/generators/test-generator/patterns/with-parent-scope.js.map +1 -1
  157. package/dist/generators/test-generator/step-mapper.d.ts +46 -0
  158. package/dist/generators/test-generator/step-mapper.d.ts.map +1 -1
  159. package/dist/generators/test-generator/step-mapper.js +84 -9
  160. package/dist/generators/test-generator/step-mapper.js.map +1 -1
  161. package/dist/generators/test-generator/utils/data-resolver.d.ts +25 -0
  162. package/dist/generators/test-generator/utils/data-resolver.d.ts.map +1 -1
  163. package/dist/generators/test-generator/utils/data-resolver.js +39 -8
  164. package/dist/generators/test-generator/utils/data-resolver.js.map +1 -1
  165. package/dist/generators/test-generator/utils/selector-entry-fields.d.ts.map +1 -1
  166. package/dist/generators/test-generator/utils/selector-entry-fields.js +1 -0
  167. package/dist/generators/test-generator/utils/selector-entry-fields.js.map +1 -1
  168. package/dist/generators/test-generator/utils/selector-resolver.d.ts +37 -4
  169. package/dist/generators/test-generator/utils/selector-resolver.d.ts.map +1 -1
  170. package/dist/generators/test-generator/utils/selector-resolver.js +212 -79
  171. package/dist/generators/test-generator/utils/selector-resolver.js.map +1 -1
  172. package/dist/harness/audit.d.ts +3 -0
  173. package/dist/harness/audit.d.ts.map +1 -1
  174. package/dist/harness/audit.js +60 -19
  175. package/dist/harness/audit.js.map +1 -1
  176. package/dist/harness/capability.d.ts +7 -1
  177. package/dist/harness/capability.d.ts.map +1 -1
  178. package/dist/harness/capability.js +15 -12
  179. package/dist/harness/capability.js.map +1 -1
  180. package/dist/harness/catalog/universal-viewpoints.yaml +5 -5
  181. package/dist/harness/config-file.d.ts +17 -0
  182. package/dist/harness/config-file.d.ts.map +1 -0
  183. package/dist/harness/config-file.js +100 -0
  184. package/dist/harness/config-file.js.map +1 -0
  185. package/dist/harness/counted-assertions.d.ts +2 -0
  186. package/dist/harness/counted-assertions.d.ts.map +1 -0
  187. package/dist/harness/counted-assertions.js +38 -0
  188. package/dist/harness/counted-assertions.js.map +1 -0
  189. package/dist/harness/data-driven-lint.d.ts.map +1 -1
  190. package/dist/harness/data-driven-lint.js +69 -27
  191. package/dist/harness/data-driven-lint.js.map +1 -1
  192. package/dist/harness/defect-draft.d.ts +14 -0
  193. package/dist/harness/defect-draft.d.ts.map +1 -0
  194. package/dist/harness/defect-draft.js +143 -0
  195. package/dist/harness/defect-draft.js.map +1 -0
  196. package/dist/harness/defects.d.ts +24 -0
  197. package/dist/harness/defects.d.ts.map +1 -0
  198. package/dist/harness/defects.js +118 -0
  199. package/dist/harness/defects.js.map +1 -0
  200. package/dist/harness/depth-lint.d.ts.map +1 -1
  201. package/dist/harness/depth-lint.js +2 -1
  202. package/dist/harness/depth-lint.js.map +1 -1
  203. package/dist/harness/flow-check.d.ts.map +1 -1
  204. package/dist/harness/flow-check.js +6 -2
  205. package/dist/harness/flow-check.js.map +1 -1
  206. package/dist/harness/keyword-match.d.ts +59 -0
  207. package/dist/harness/keyword-match.d.ts.map +1 -0
  208. package/dist/harness/keyword-match.js +86 -0
  209. package/dist/harness/keyword-match.js.map +1 -0
  210. package/dist/harness/manifest.d.ts.map +1 -1
  211. package/dist/harness/manifest.js +2 -2
  212. package/dist/harness/manifest.js.map +1 -1
  213. package/dist/harness/next-step.d.ts +2 -4
  214. package/dist/harness/next-step.d.ts.map +1 -1
  215. package/dist/harness/next-step.js +50 -5
  216. package/dist/harness/next-step.js.map +1 -1
  217. package/dist/harness/parse.d.ts +45 -0
  218. package/dist/harness/parse.d.ts.map +1 -1
  219. package/dist/harness/parse.js +142 -24
  220. package/dist/harness/parse.js.map +1 -1
  221. package/dist/harness/perf.d.ts +7 -1
  222. package/dist/harness/perf.d.ts.map +1 -1
  223. package/dist/harness/perf.js +13 -10
  224. package/dist/harness/perf.js.map +1 -1
  225. package/dist/harness/quality-gates.d.ts +9 -2
  226. package/dist/harness/quality-gates.d.ts.map +1 -1
  227. package/dist/harness/quality-gates.js +22 -8
  228. package/dist/harness/quality-gates.js.map +1 -1
  229. package/dist/harness/query-catalog.js +0 -0
  230. package/dist/harness/query-catalog.js.map +1 -1
  231. package/dist/harness/read-text.d.ts +21 -0
  232. package/dist/harness/read-text.d.ts.map +1 -1
  233. package/dist/harness/read-text.js +32 -1
  234. package/dist/harness/read-text.js.map +1 -1
  235. package/dist/harness/script-check.d.ts.map +1 -1
  236. package/dist/harness/script-check.js +7 -1
  237. package/dist/harness/script-check.js.map +1 -1
  238. package/dist/harness/secret-scan.d.ts +27 -1
  239. package/dist/harness/secret-scan.d.ts.map +1 -1
  240. package/dist/harness/secret-scan.js +57 -4
  241. package/dist/harness/secret-scan.js.map +1 -1
  242. package/dist/harness/select-by-ids.d.ts +31 -0
  243. package/dist/harness/select-by-ids.d.ts.map +1 -0
  244. package/dist/harness/select-by-ids.js +106 -0
  245. package/dist/harness/select-by-ids.js.map +1 -0
  246. package/dist/harness/sensors.d.ts +20 -1
  247. package/dist/harness/sensors.d.ts.map +1 -1
  248. package/dist/harness/sensors.js +133 -39
  249. package/dist/harness/sensors.js.map +1 -1
  250. package/dist/harness/spec-branches.d.ts +0 -18
  251. package/dist/harness/spec-branches.d.ts.map +1 -1
  252. package/dist/harness/spec-branches.js +24 -3
  253. package/dist/harness/spec-branches.js.map +1 -1
  254. package/dist/harness/spec-coverage.d.ts.map +1 -1
  255. package/dist/harness/spec-coverage.js +14 -4
  256. package/dist/harness/spec-coverage.js.map +1 -1
  257. package/dist/harness/triage-signals.d.ts +20 -0
  258. package/dist/harness/triage-signals.d.ts.map +1 -0
  259. package/dist/harness/triage-signals.js +30 -0
  260. package/dist/harness/triage-signals.js.map +1 -0
  261. package/dist/harness/triage-unit.d.ts +23 -0
  262. package/dist/harness/triage-unit.d.ts.map +1 -0
  263. package/dist/harness/triage-unit.js +142 -0
  264. package/dist/harness/triage-unit.js.map +1 -0
  265. package/dist/harness/triage.d.ts +28 -0
  266. package/dist/harness/triage.d.ts.map +1 -0
  267. package/dist/harness/triage.js +99 -0
  268. package/dist/harness/triage.js.map +1 -0
  269. package/dist/harness/ui-inventory.d.ts +40 -0
  270. package/dist/harness/ui-inventory.d.ts.map +1 -0
  271. package/dist/harness/ui-inventory.js +191 -0
  272. package/dist/harness/ui-inventory.js.map +1 -0
  273. package/dist/harness/viewpoint-baseline.d.ts.map +1 -1
  274. package/dist/harness/viewpoint-baseline.js +7 -1
  275. package/dist/harness/viewpoint-baseline.js.map +1 -1
  276. package/dist/harness/viewpoint-draft-header.d.ts +7 -0
  277. package/dist/harness/viewpoint-draft-header.d.ts.map +1 -0
  278. package/dist/harness/viewpoint-draft-header.js +100 -0
  279. package/dist/harness/viewpoint-draft-header.js.map +1 -0
  280. package/dist/harness/viewpoint-ledger.d.ts +13 -3
  281. package/dist/harness/viewpoint-ledger.d.ts.map +1 -1
  282. package/dist/harness/viewpoint-ledger.js +106 -19
  283. package/dist/harness/viewpoint-ledger.js.map +1 -1
  284. package/dist/harness/viewpoint-mode.d.ts +9 -0
  285. package/dist/harness/viewpoint-mode.d.ts.map +1 -0
  286. package/dist/harness/viewpoint-mode.js +52 -0
  287. package/dist/harness/viewpoint-mode.js.map +1 -0
  288. package/dist/harness/viewpoint-priority.d.ts +19 -0
  289. package/dist/harness/viewpoint-priority.d.ts.map +1 -0
  290. package/dist/harness/viewpoint-priority.js +36 -0
  291. package/dist/harness/viewpoint-priority.js.map +1 -0
  292. package/dist/harness/viewpoint-review-open.d.ts +6 -0
  293. package/dist/harness/viewpoint-review-open.d.ts.map +1 -0
  294. package/dist/harness/viewpoint-review-open.js +90 -0
  295. package/dist/harness/viewpoint-review-open.js.map +1 -0
  296. package/dist/harness/viewpoint-scan-refs.d.ts +50 -0
  297. package/dist/harness/viewpoint-scan-refs.d.ts.map +1 -0
  298. package/dist/harness/viewpoint-scan-refs.js +200 -0
  299. package/dist/harness/viewpoint-scan-refs.js.map +1 -0
  300. package/dist/harness/viewpoint-scan.d.ts +41 -0
  301. package/dist/harness/viewpoint-scan.d.ts.map +1 -0
  302. package/dist/harness/viewpoint-scan.js +118 -0
  303. package/dist/harness/viewpoint-scan.js.map +1 -0
  304. package/dist/harness/write-atomic.d.ts +2 -0
  305. package/dist/harness/write-atomic.d.ts.map +1 -0
  306. package/dist/harness/write-atomic.js +62 -0
  307. package/dist/harness/write-atomic.js.map +1 -0
  308. package/dist/orchestrator/ai-skills/writer.d.ts.map +1 -1
  309. package/dist/orchestrator/ai-skills/writer.js +15 -7
  310. package/dist/orchestrator/ai-skills/writer.js.map +1 -1
  311. package/dist/orchestrator/assets-drift.d.ts.map +1 -1
  312. package/dist/orchestrator/assets-drift.js +11 -6
  313. package/dist/orchestrator/assets-drift.js.map +1 -1
  314. package/dist/orchestrator/flow-manager.d.ts +0 -1
  315. package/dist/orchestrator/flow-manager.d.ts.map +1 -1
  316. package/dist/orchestrator/flow-manager.js +3 -52
  317. package/dist/orchestrator/flow-manager.js.map +1 -1
  318. package/dist/orchestrator/project-deps-sync.d.ts.map +1 -1
  319. package/dist/orchestrator/project-deps-sync.js +22 -1
  320. package/dist/orchestrator/project-deps-sync.js.map +1 -1
  321. package/dist/orchestrator/project-initializer.d.ts +8 -0
  322. package/dist/orchestrator/project-initializer.d.ts.map +1 -1
  323. package/dist/orchestrator/project-initializer.js +49 -7
  324. package/dist/orchestrator/project-initializer.js.map +1 -1
  325. package/dist/orchestrator/screen-manager.d.ts.map +1 -1
  326. package/dist/orchestrator/screen-manager.js +8 -62
  327. package/dist/orchestrator/screen-manager.js.map +1 -1
  328. package/dist/orchestrator/security-overrides-catalog.d.ts +39 -0
  329. package/dist/orchestrator/security-overrides-catalog.d.ts.map +1 -0
  330. package/dist/orchestrator/security-overrides-catalog.js +63 -0
  331. package/dist/orchestrator/security-overrides-catalog.js.map +1 -0
  332. package/dist/orchestrator/security-overrides.d.ts +51 -0
  333. package/dist/orchestrator/security-overrides.d.ts.map +1 -0
  334. package/dist/orchestrator/security-overrides.js +165 -0
  335. package/dist/orchestrator/security-overrides.js.map +1 -0
  336. package/dist/orchestrator/templates/ai-src/agents/discovery.md +11 -3
  337. package/dist/orchestrator/templates/ai-src/agents/reviewer.md +8 -0
  338. package/dist/orchestrator/templates/ai-src/commands/create-test.md +32 -24
  339. package/dist/orchestrator/templates/ai-src/commands/review.md +2 -2
  340. package/dist/orchestrator/templates/ai-src/commands/run-test.md +78 -15
  341. package/dist/orchestrator/templates/ai-src/skills/sungen-capture/mode-local.md +2 -2
  342. package/dist/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +14 -0
  343. package/dist/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +25 -1
  344. package/dist/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +26 -8
  345. package/dist/orchestrator/templates/ai-src/skills/sungen-harness-audit/SKILL.md +5 -1
  346. package/dist/orchestrator/templates/ai-src/skills/sungen-selector-fix/SKILL.md +58 -14
  347. package/dist/orchestrator/templates/ai-src/skills/sungen-selector-keys/SKILL.md +13 -1
  348. package/dist/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +42 -2
  349. package/dist/orchestrator/templates/ai-src/skills/sungen-tc-review/SKILL.md +7 -0
  350. package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/SKILL.md +18 -0
  351. package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/review-checklist.md +63 -0
  352. package/dist/orchestrator/templates/ai-src/skills/sungen-viewpoint/viewpoint-template.md +158 -0
  353. package/dist/orchestrator/templates/playwright.config.ts +4 -2
  354. package/dist/orchestrator/templates/specs-locale-fixture.ts +21 -9
  355. package/dist/orchestrator/templates/specs-pw-shape-reporter.ts +0 -0
  356. package/dist/orchestrator/templates/specs-url-assert.d.ts +17 -1
  357. package/dist/orchestrator/templates/specs-url-assert.d.ts.map +1 -1
  358. package/dist/orchestrator/templates/specs-url-assert.js +38 -4
  359. package/dist/orchestrator/templates/specs-url-assert.js.map +1 -1
  360. package/dist/orchestrator/templates/specs-url-assert.ts +47 -4
  361. package/dist/orchestrator/templates/wdio.conf.ts +24 -1
  362. package/dist/orchestrator/trace-mode-install.d.ts +14 -0
  363. package/dist/orchestrator/trace-mode-install.d.ts.map +1 -0
  364. package/dist/orchestrator/trace-mode-install.js +132 -0
  365. package/dist/orchestrator/trace-mode-install.js.map +1 -0
  366. package/dist/orchestrator/viewpoint-pattern-catalog.d.ts +23 -0
  367. package/dist/orchestrator/viewpoint-pattern-catalog.d.ts.map +1 -0
  368. package/dist/orchestrator/viewpoint-pattern-catalog.js +48 -0
  369. package/dist/orchestrator/viewpoint-pattern-catalog.js.map +1 -0
  370. package/dist/orchestrator/viewpoint-scaffold.d.ts +3 -0
  371. package/dist/orchestrator/viewpoint-scaffold.d.ts.map +1 -0
  372. package/dist/orchestrator/viewpoint-scaffold.js +70 -0
  373. package/dist/orchestrator/viewpoint-scaffold.js.map +1 -0
  374. package/package.json +3 -3
  375. package/src/cli/commands/audit.ts +59 -12
  376. package/src/cli/commands/capability.ts +54 -19
  377. package/src/cli/commands/changed.ts +2 -4
  378. package/src/cli/commands/dashboard.ts +1 -26
  379. package/src/cli/commands/defect.ts +49 -0
  380. package/src/cli/commands/delivery.ts +106 -56
  381. package/src/cli/commands/generate.ts +15 -7
  382. package/src/cli/commands/results-merge.ts +9 -9
  383. package/src/cli/commands/results-sanitize.ts +2 -9
  384. package/src/cli/commands/select.ts +88 -0
  385. package/src/cli/commands/triage.ts +57 -0
  386. package/src/cli/commands/update.ts +3 -0
  387. package/src/cli/commands/viewpoint.ts +58 -0
  388. package/src/cli/index.ts +13 -2
  389. package/src/dashboard/snapshot-builder.ts +6 -8
  390. package/src/dashboard/templates/index.html +1 -1
  391. package/src/dashboard/types.ts +1 -0
  392. package/src/exporters/csv-exporter.ts +12 -11
  393. package/src/exporters/feature-parser.ts +44 -2
  394. package/src/exporters/json-exporter.ts +6 -1
  395. package/src/exporters/locale-variants.ts +23 -17
  396. package/src/exporters/manual-hybrid-oracle.ts +112 -0
  397. package/src/exporters/matrix/build.ts +71 -19
  398. package/src/exporters/matrix/carry-manual-results.ts +292 -0
  399. package/src/exporters/matrix/export.ts +24 -4
  400. package/src/exporters/matrix/gates.ts +6 -0
  401. package/src/exporters/matrix/render-csv.ts +1 -1
  402. package/src/exporters/matrix/render-testcase-sheet.ts +10 -4
  403. package/src/exporters/matrix/render-xlsx.ts +3 -0
  404. package/src/exporters/matrix/types.ts +13 -1
  405. package/src/exporters/matrix/wording.ts +36 -2
  406. package/src/exporters/playwright-report-parser.ts +1 -0
  407. package/src/exporters/run-environment.ts +89 -0
  408. package/src/exporters/scenario-merger.ts +51 -5
  409. package/src/exporters/test-data-resolver.ts +0 -6
  410. package/src/exporters/types.ts +5 -0
  411. package/src/exporters/xlsx-exporter.ts +7 -2
  412. package/src/generators/gherkin-parser/index.ts +50 -18
  413. package/src/generators/test-generator/adapters/adapter-interface.ts +6 -2
  414. package/src/generators/test-generator/adapters/appium/templates/steps/actions/reinstall-app-action.hbs +2 -2
  415. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/label-value-assertion.hbs +8 -2
  416. package/src/generators/test-generator/adapters/appium/templates/steps/assertions/visible-with-role-variable-assertion.hbs +7 -3
  417. package/src/generators/test-generator/adapters/appium/templates/test-file.hbs +68 -4
  418. package/src/generators/test-generator/adapters/playwright/templates/steps/actions/click-select-action.hbs +1 -1
  419. package/src/generators/test-generator/adapters/playwright/templates/steps/actions/select-action.hbs +1 -1
  420. package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/label-value-assertion.hbs +7 -1
  421. package/src/generators/test-generator/adapters/playwright/templates/steps/assertions/visible-with-role-variable-assertion.hbs +8 -4
  422. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/pick-option.hbs +13 -0
  423. package/src/generators/test-generator/adapters/playwright/templates/steps/partials/url-assertion.hbs +5 -1
  424. package/src/generators/test-generator/adapters/playwright/templates/test-file.hbs +16 -0
  425. package/src/generators/test-generator/code-generator.ts +77 -5
  426. package/src/generators/test-generator/diagnostics.ts +36 -5
  427. package/src/generators/test-generator/patterns/index.ts +15 -8
  428. package/src/generators/test-generator/patterns/types.ts +15 -0
  429. package/src/generators/test-generator/patterns/with-parent-scope.ts +6 -0
  430. package/src/generators/test-generator/step-mapper.ts +90 -8
  431. package/src/generators/test-generator/utils/data-resolver.ts +41 -12
  432. package/src/generators/test-generator/utils/selector-entry-fields.ts +1 -0
  433. package/src/generators/test-generator/utils/selector-resolver.ts +238 -82
  434. package/src/harness/audit.ts +69 -24
  435. package/src/harness/capability.ts +23 -12
  436. package/src/harness/catalog/universal-viewpoints.yaml +5 -5
  437. package/src/harness/config-file.ts +66 -0
  438. package/src/harness/counted-assertions.ts +33 -0
  439. package/src/harness/data-driven-lint.ts +82 -24
  440. package/src/harness/defect-draft.ts +115 -0
  441. package/src/harness/defects.ts +94 -0
  442. package/src/harness/depth-lint.ts +2 -1
  443. package/src/harness/flow-check.ts +6 -2
  444. package/src/harness/keyword-match.ts +85 -0
  445. package/src/harness/manifest.ts +2 -2
  446. package/src/harness/next-step.ts +47 -5
  447. package/src/harness/parse.ts +151 -27
  448. package/src/harness/perf.ts +15 -7
  449. package/src/harness/quality-gates.ts +22 -8
  450. package/src/harness/query-catalog.ts +0 -0
  451. package/src/harness/read-text.ts +32 -1
  452. package/src/harness/script-check.ts +7 -1
  453. package/src/harness/secret-scan.ts +60 -4
  454. package/src/harness/select-by-ids.ts +83 -0
  455. package/src/harness/sensors.ts +141 -40
  456. package/src/harness/spec-branches.ts +6 -3
  457. package/src/harness/spec-coverage.ts +14 -4
  458. package/src/harness/triage-signals.ts +46 -0
  459. package/src/harness/triage-unit.ts +113 -0
  460. package/src/harness/triage.ts +127 -0
  461. package/src/harness/ui-inventory.ts +164 -0
  462. package/src/harness/viewpoint-baseline.ts +7 -1
  463. package/src/harness/viewpoint-draft-header.ts +55 -0
  464. package/src/harness/viewpoint-ledger.ts +113 -25
  465. package/src/harness/viewpoint-mode.ts +49 -0
  466. package/src/harness/viewpoint-priority.ts +38 -0
  467. package/src/harness/viewpoint-review-open.ts +51 -0
  468. package/src/harness/viewpoint-scan-refs.ts +154 -0
  469. package/src/harness/viewpoint-scan.ts +111 -0
  470. package/src/harness/write-atomic.ts +22 -0
  471. package/src/orchestrator/ai-skills/writer.ts +18 -3
  472. package/src/orchestrator/assets-drift.ts +10 -5
  473. package/src/orchestrator/flow-manager.ts +3 -53
  474. package/src/orchestrator/project-deps-sync.ts +23 -1
  475. package/src/orchestrator/project-initializer.ts +54 -6
  476. package/src/orchestrator/screen-manager.ts +7 -61
  477. package/src/orchestrator/security-overrides-catalog.ts +69 -0
  478. package/src/orchestrator/security-overrides.ts +149 -0
  479. package/src/orchestrator/templates/ai-src/agents/discovery.md +11 -3
  480. package/src/orchestrator/templates/ai-src/agents/reviewer.md +8 -0
  481. package/src/orchestrator/templates/ai-src/commands/create-test.md +32 -24
  482. package/src/orchestrator/templates/ai-src/commands/review.md +2 -2
  483. package/src/orchestrator/templates/ai-src/commands/run-test.md +78 -15
  484. package/src/orchestrator/templates/ai-src/skills/sungen-capture/mode-local.md +2 -2
  485. package/src/orchestrator/templates/ai-src/skills/sungen-delivery/SKILL.md +14 -0
  486. package/src/orchestrator/templates/ai-src/skills/sungen-error-mapping/SKILL.md +25 -1
  487. package/src/orchestrator/templates/ai-src/skills/sungen-gherkin-syntax/SKILL.md +26 -8
  488. package/src/orchestrator/templates/ai-src/skills/sungen-harness-audit/SKILL.md +5 -1
  489. package/src/orchestrator/templates/ai-src/skills/sungen-selector-fix/SKILL.md +58 -14
  490. package/src/orchestrator/templates/ai-src/skills/sungen-selector-keys/SKILL.md +13 -1
  491. package/src/orchestrator/templates/ai-src/skills/sungen-tc-generation/SKILL.md +42 -2
  492. package/src/orchestrator/templates/ai-src/skills/sungen-tc-review/SKILL.md +7 -0
  493. package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/SKILL.md +18 -0
  494. package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/review-checklist.md +63 -0
  495. package/src/orchestrator/templates/ai-src/skills/sungen-viewpoint/viewpoint-template.md +158 -0
  496. package/src/orchestrator/templates/playwright.config.ts +4 -2
  497. package/src/orchestrator/templates/specs-locale-fixture.ts +21 -9
  498. package/src/orchestrator/templates/specs-pw-shape-reporter.ts +0 -0
  499. package/src/orchestrator/templates/specs-url-assert.ts +47 -4
  500. package/src/orchestrator/templates/wdio.conf.ts +24 -1
  501. package/src/orchestrator/trace-mode-install.ts +94 -0
  502. package/src/orchestrator/viewpoint-pattern-catalog.ts +61 -0
  503. package/src/orchestrator/viewpoint-scaffold.ts +36 -0
@@ -1,2 +1,2 @@
1
1
  await {{> locator}}.click();
2
- await page.getByText('{{selectValue}}', { exact: true }).first().click();
2
+ {{> pick-option}}
@@ -9,7 +9,7 @@ if ((await el.evaluate((n) => n.tagName.toLowerCase())) === 'select') {
9
9
  await el.selectOption('{{selectValue}}');
10
10
  } else {
11
11
  await el.click();
12
- await page.getByText('{{selectValue}}', { exact: true }).first().click();
12
+ {{> pick-option}}
13
13
  }
14
14
  }
15
15
  {{~else~}}
@@ -1 +1,7 @@
1
- await expect(page.getByText(/{{#if label}}{{escapeRegex label}}\s*{{else}}(?:^|\s){{/if}}{{escapeRegex dataValue}}$/)).toBeVisible();
1
+ {{!-- Caption+value read: the ref names on-screen TEXT ("学科 -"), not an element, so the locator is
2
+ built inline from the caption rather than through the `locator` partial. That is why the scope
3
+ clause needs its own slot here — the partial's `parentLocator` handling never runs (#747).
4
+ Unscoped, `… in [Education Card 6] card` compiled away to nothing: on a screen repeating ten
5
+ 学歴・職歴 cards the assertion strict-mode-failed where the caption repeats, and where it
6
+ happened to be unique elsewhere it passed having read a DIFFERENT card than the sentence names. --}}
7
+ await expect({{#if parentLocator}}{{parentLocator}}{{else}}page{{/if}}.getByText(/{{#if label}}{{escapeRegex label}}\s*{{else}}(?:^|\s){{/if}}{{escapeRegex dataValue}}$/)).toBeVisible();
@@ -1,9 +1,13 @@
1
+ {{!-- `getByRole` is built inline from role/name rather than through the `locator` partial, so the
2
+ scope clause needs its own slot here exactly as in label-value-assertion — the label branch's
3
+ twin (#747). `see [Logo] image with {{alt}} in [Product Card 3] card` searched every card on
4
+ the page before this. --}}
1
5
  {{#if name}}
2
6
  {{#if dataValue}}
3
- await expect(page.getByRole('{{role}}', { name: '{{escapeQuotes name}}'{{#if exact}}, exact: true{{/if}} }).filter({ hasText: /^{{escapeRegex dataValue}}$/ }){{> locator-nth}}).toBeVisible();
7
+ await expect({{#if parentLocator}}{{parentLocator}}{{else}}page{{/if}}.getByRole('{{role}}', { name: '{{escapeQuotes name}}'{{#if exact}}, exact: true{{/if}} }).filter({ hasText: /^{{escapeRegex dataValue}}$/ }){{> locator-nth}}).toBeVisible();
4
8
  {{else}}
5
- await expect(page.getByRole('{{role}}', { name: '{{escapeQuotes name}}'{{#if exact}}, exact: true{{/if}} }){{> locator-nth}}).toBeVisible();
9
+ await expect({{#if parentLocator}}{{parentLocator}}{{else}}page{{/if}}.getByRole('{{role}}', { name: '{{escapeQuotes name}}'{{#if exact}}, exact: true{{/if}} }){{> locator-nth}}).toBeVisible();
6
10
  {{/if}}
7
11
  {{else}}
8
- await expect(page.getByRole('{{role}}'{{#if exact}}, { exact: true }{{/if}}).filter({ hasText: /^{{escapeRegex dataValue}}$/ }){{> locator-nth}}).toBeVisible();
9
- {{/if}}
12
+ await expect({{#if parentLocator}}{{parentLocator}}{{else}}page{{/if}}.getByRole('{{role}}'{{#if exact}}, { exact: true }{{/if}}).filter({ hasText: /^{{escapeRegex dataValue}}$/ }){{> locator-nth}}).toBeVisible();
13
+ {{/if}}
@@ -0,0 +1,13 @@
1
+ {{!-- #847 — pick the value in an OPENED custom listbox (Radix/shadcn, MUI, Headless UI).
2
+ The popup portals to the end of <body>, so a page-wide getByText(…).first() resolved to
3
+ any EARLIER element with the same text (a badge showing the current choice, a result
4
+ card) — and the open popup blocks clicks outside it, so the step timed out every time,
5
+ looking like a race. The ARIA option lives only in the open listbox: wait briefly for it
6
+ (a count() right after opening would race the popup animation), and fall back to the old
7
+ text match only for a widget that exposes no listbox roles. --}}
8
+ { const __opt = page.getByRole('option', { name: '{{selectValue}}', exact: true }).first();
9
+ if (await __opt.waitFor({ state: 'visible', timeout: 3000 }).then(() => true, () => false)) {
10
+ await __opt.click();
11
+ } else {
12
+ await page.getByText('{{selectValue}}', { exact: true }).first().click();
13
+ } }
@@ -23,8 +23,12 @@
23
23
  `https://admin.example.com/jobs` asserted the PATH on any host, and the public site's /jobs
24
24
  satisfied it.
25
25
 
26
+ `ignoreQuery` comes from the page ENTRY's `query: any`, not from the step, because it is a fact
27
+ about the page rather than about one assertion (#748). It relaxes only the bare-page rule; the
28
+ declared-value half below is untouched, so the two compose rather than override each other.
29
+
26
30
  The declared-value half is gated on `dataRef`, not on `query`. The step wrote `with {{v}}`
27
31
  either way; gating on the resolved VALUE meant an empty test-data entry silently dropped the
28
32
  whole check and fell back to the bare-page rule, which is the one case specs/url-assert.ts
29
33
  exists to throw on. --}}
30
- await expectPage(page, { pathname: /^{{pathRegex}}\/?$/{{#if hostRegex}}, hostname: /^{{hostRegex}}$/{{/if}}{{#if dataRef}}, dataRef: '{{escapeQuotes dataRef}}', declared: '{{escapeQuotes query}}'{{/if}} });
34
+ await expectPage(page, { pathname: /^{{pathRegex}}\/?$/{{#if hostRegex}}, hostname: /^{{hostRegex}}$/{{/if}}{{#if ignoreQuery}}, ignoreQuery: true{{/if}}{{#if dataRef}}, dataRef: '{{escapeQuotes dataRef}}', declared: '{{escapeQuotes query}}'{{/if}} });
@@ -46,6 +46,10 @@ test.describe('{{featureName}}', () => {
46
46
  test.describe('{{authRole}}', () => {
47
47
  test.use({ storageState: 'specs/.auth/{{authRole}}.json' });
48
48
 
49
+ {{#if afterEach}}
50
+ {{indent afterEach 2}}
51
+
52
+ {{/if}}
49
53
  {{#each scenarios}}
50
54
  {{indent this 2}}
51
55
 
@@ -63,6 +67,18 @@ test.describe('{{featureName}}', () => {
63
67
  {{#each scenarios}}
64
68
  {{indent this 2}}
65
69
 
70
+ {{/each}}
71
+ });
72
+
73
+ {{else if afterEach}}
74
+ {{!-- The un-tagged group next to a `@no-auth` one (#815): an ANONYMOUS describe scopes the hook to
75
+ these tests without adding a title segment, so test titles (and delivery fingerprints) stay put. --}}
76
+ test.describe(() => {
77
+ {{indent afterEach 2}}
78
+
79
+ {{#each scenarios}}
80
+ {{indent this 2}}
81
+
66
82
  {{/each}}
67
83
  });
68
84
 
@@ -10,6 +10,7 @@ import { capabilityRegistry } from '../../capabilities/registry';
10
10
  import { discoverAndRegisterCapabilities } from '../../capabilities/discover';
11
11
  import { readCapabilities } from '../../harness/capability';
12
12
  import { parseManualComments } from '../../exporters/scenario-merger';
13
+ import { isPresencePlaceholderHybrid } from '../../exporters/manual-hybrid-oracle';
13
14
  import { findSyntaxError } from './utils/spec-syntax-check';
14
15
 
15
16
  /** One capability-injected precondition statement (`@api:`/`@query:` → `testData.bind(name, …)`). */
@@ -210,7 +211,7 @@ function getAuthMode(
210
211
  * Grouping key for the anonymous bucket. A literal that no `@auth:<role>` can produce, so an
211
212
  * imaginative role name can never land in the same group as `@no-auth`.
212
213
  */
213
- const NO_AUTH_GROUP_KEY = 'no-auth';
214
+ const NO_AUTH_GROUP_KEY = '\0no-auth';
214
215
 
215
216
 
216
217
  /**
@@ -266,6 +267,56 @@ function warnMultipleAuthTags(tags: string[], context: string): void {
266
267
  }
267
268
  }
268
269
 
270
+ /**
271
+ * Drop the YAML comment from ONE line: a `#` at line start or preceded by whitespace,
272
+ * and not inside a quoted scalar. Line-level only — see `yamlWithoutComments` for the
273
+ * block-scalar case, which this function cannot see from a single line.
274
+ */
275
+ function stripYamlComment(line: string): string {
276
+ let quote: string | null = null;
277
+ for (let i = 0; i < line.length; i++) {
278
+ const c = line[i];
279
+ if (quote) {
280
+ if (quote === '"' && c === '\\') { i++; continue; }
281
+ if (c === quote) quote = null;
282
+ continue;
283
+ }
284
+ if (c === '"' || c === "'") { quote = c; continue; }
285
+ if (c === '#' && (i === 0 || /\s/.test(line[i - 1]))) return line.slice(0, i);
286
+ }
287
+ return line;
288
+ }
289
+
290
+ /**
291
+ * The YAML text a `${QA_*}` scan may look at: comments removed, block scalars kept whole.
292
+ *
293
+ * SG-W009's reference scan used to run over the whole raw file, so a `${QA_*}` that only ever
294
+ * appeared in a `#` comment counted as a live reference — including the one sungen's own
295
+ * scaffolded "HOW TO FILL VALUES" block writes into every test-data file. The declared side has
296
+ * always been line-wise; this brings the reference side to the same footing.
297
+ *
298
+ * Inside a `|`/`>` block scalar every character is literal content, `#` included, so those lines
299
+ * pass through untouched. Stripping them would send the check the other way — a real, undeclared
300
+ * `${QA_*}` written after a `#` in a block scalar would go unreported, and the run would only fail
301
+ * later with "environment variable not set". A missed warning is worse than a noisy one.
302
+ */
303
+ function yamlWithoutComments(text: string): string {
304
+ const out: string[] = [];
305
+ let blockIndent: number | null = null;
306
+ for (const line of text.split('\n')) {
307
+ if (blockIndent !== null) {
308
+ const indent = line.search(/\S/);
309
+ // blank lines and anything indented deeper than the key stay inside the scalar
310
+ if (indent === -1 || indent > blockIndent) { out.push(line); continue; }
311
+ blockIndent = null;
312
+ }
313
+ const block = /^(\s*)[^#\s][^:]*:\s*[|>][+-]?\d*[+-]?\s*$/.exec(line);
314
+ if (block) { blockIndent = block[1].length; out.push(line); continue; }
315
+ out.push(stripYamlComment(line));
316
+ }
317
+ return out.join('\n');
318
+ }
319
+
269
320
  /**
270
321
  * Result of test generation for a single feature file
271
322
  */
@@ -740,11 +791,18 @@ export class CodeGenerator {
740
791
  // labeled `Observable:`/`Oracle:`/`Expected:` line (parseManualComments — the
741
792
  // SAME parser delivery uses). Field finding (student-site, 87 scenarios): prose
742
793
  // paragraphs and rationale-only comments exported EMPTY Steps + Expected cells.
794
+ // • HAS a Then, but every assertion is a bare presence placeholder while the real oracle
795
+ // sits in the comments (#810) — the same banned hybrid wearing a Then: the deliverable
796
+ // reads "See [X] table" and a tester ticking it Passed records a check nobody made.
743
797
  const isStructured = scenario.steps.length > 0;
744
798
  if (isStructured && !hasThenStep(scenario)) {
745
799
  this.diagnostics.add('SG-W008',
746
800
  `@manual scenario "${scenario.name}" has Gherkin steps but no Then — a When without Then is invalid Gherkin. Add the Then step, or remove the steps and write the full procedure (action steps, then "Observable:"/"Oracle:" lines) in its \`# Tester verifies:\` block`,
747
801
  { feature: feature.name, step: scenario.name });
802
+ } else if (isStructured && isPresencePlaceholderHybrid(scenario.steps, scenario.comments ?? [])) {
803
+ this.diagnostics.add('SG-W008',
804
+ `@manual scenario "${scenario.name}" asserts only presence (e.g. "User see [X] table") while its real oracle sits in the \`# Tester verifies:\` comment — the deliverable's Expected would not say what the case checks. Write the oracle as the Then step (e.g. \`table match data:\`), or remove the steps and write the full numbered procedure ("1. <action>" … "N. Observable: <what>")`,
805
+ { feature: feature.name, step: scenario.name });
748
806
  } else if (!isStructured) {
749
807
  const parsed = parseManualComments(scenario.comments ?? []);
750
808
  if (!parsed.steps.length || !parsed.expected.length) {
@@ -830,7 +888,7 @@ export class CodeGenerator {
830
888
  authGroupMap.get(key)!.push(code);
831
889
  }
832
890
 
833
- const authGroups = groupOrder.map(key => ({
891
+ const authGroups = groupOrder.map((key): { authRole?: string; noAuth: boolean; scenarios: string[]; afterEach?: string } => ({
834
892
  authRole: key === NO_AUTH_GROUP_KEY ? undefined : (key || undefined),
835
893
  noAuth: key === NO_AUTH_GROUP_KEY,
836
894
  scenarios: authGroupMap.get(key)!,
@@ -873,6 +931,19 @@ export class CodeGenerator {
873
931
  }
874
932
  const scenarios = renderedScenarios.map(s => s.code);
875
933
 
934
+ // #815 — a feature-level `@afterEach` used to sit in the outermost describe, so it also ran after
935
+ // every `@no-auth` test, on an EMPTY session: a hook that needs the signed-in page (`Given User is
936
+ // on [probe] page` → redirected to /login) failed an anonymous test whose own steps passed. When
937
+ // the feature mixes `@no-auth` with any other group, the hook moves INTO each other group and the
938
+ // no-auth group runs without it. A feature that is anonymous throughout keeps the hook — it was
939
+ // written for those tests.
940
+ // (A no-auth group beside another one means ≥2 groups, so `renderAuthBlocks` is already true.)
941
+ const afterEachInGroups = !!afterEach
942
+ && authGroups.some(g => g.noAuth) && authGroups.some(g => !g.noAuth);
943
+ if (afterEachInGroups) {
944
+ for (const g of authGroups) if (!g.noAuth) g.afterEach = afterEach;
945
+ }
946
+
876
947
  // For single group, extract the auth role to put test.use at describe level. Keyed on
877
948
  // `renderAuthBlocks`, not `needsGrouping`: a lone `@no-auth` group now renders its own block, so
878
949
  // hoisting anything to the feature describe would double up. Its authRole is undefined anyway.
@@ -969,7 +1040,7 @@ export class CodeGenerator {
969
1040
  featureDescription: feature.description,
970
1041
  background,
971
1042
  beforeAll,
972
- afterEach,
1043
+ afterEach: afterEachInGroups ? undefined : afterEach,
973
1044
  afterAll,
974
1045
  cleanupConfig,
975
1046
  screenshotOnFailure,
@@ -1314,7 +1385,8 @@ export class CodeGenerator {
1314
1385
  * a name in the committed .env.qa.example. An undeclared ref means the test throws
1315
1386
  * "environment variable not set" the moment the key is used — surface it at compile
1316
1387
  * time instead. Only the `${QA_*}` shape is checked: any other `${...}` text is
1317
- * ordinary literal data by design (never resolved, never warned about).
1388
+ * ordinary literal data by design (never resolved, never warned about). A `${QA_*}`
1389
+ * that appears only inside a `#` comment is prose, not a reference, and is ignored.
1318
1390
  */
1319
1391
  private reportedEnvRefs = new Set<string>();
1320
1392
  private checkEnvSecretRefs(featureFile: string): void {
@@ -1322,7 +1394,7 @@ export class CodeGenerator {
1322
1394
  if (!fs.existsSync(testDataDir)) return;
1323
1395
  const referenced = new Set<string>();
1324
1396
  for (const f of fs.readdirSync(testDataDir).filter((x) => x.endsWith('.yaml') || x.endsWith('.yml'))) {
1325
- const text = fs.readFileSync(path.join(testDataDir, f), 'utf-8');
1397
+ const text = yamlWithoutComments(fs.readFileSync(path.join(testDataDir, f), 'utf-8'));
1326
1398
  for (const m of text.matchAll(/\$\{(QA_[A-Z0-9_]+)\}/g)) referenced.add(m[1]);
1327
1399
  }
1328
1400
  if (!referenced.size) return;
@@ -24,7 +24,9 @@
24
24
  * SG-W008 — @manual scenario is incomplete in either direction: Gherkin steps without a
25
25
  * Then (invalid Gherkin; comments cannot substitute), or a documentation-style
26
26
  * manual (no steps) whose comments lack the extractable procedure — ≥1 numbered
27
- * action line + ≥1 labeled Observable:/Oracle:/Expected: line
27
+ * action line + ≥1 labeled Observable:/Oracle:/Expected: line — or a Then that
28
+ * asserts only presence while the real oracle sits in a `# Tester verifies:`
29
+ * comment (#810)
28
30
  * SG-W009 — test-data references a `${QA_*}` secret that is declared in neither .env.qa
29
31
  * nor .env.qa.example — the test will throw "not set" the moment the key is used
30
32
  * SG-W010 — a row step's [Ref] looks POSITIONAL (First/Last/Top/…) but has no selectors.yaml
@@ -186,12 +188,29 @@
186
188
  * build names itself at generate time instead of one step further downstream
187
189
  *
188
190
  * SG-W028 — a step's trailing scope clause was DROPPED, so the step runs against more of the page
189
- * than its sentence names. Two causes, one code: the `<word>` after `in [X]` is not a
191
+ * than its sentence names. Three causes, one code: the `<word>` after `in [X]` is not a
190
192
  * container type (a typo, or a leaf element used as a parent), or the by-content form
191
193
  * `in [X] <type> with {{v}}` was written for the mobile adapter, which chains a parent
192
194
  * element and has no content filter. Before this, both compiled clean and silently
193
195
  * widened the assertion to the whole screen — the failure mode that only a diff of the
194
- * generated spec against the Gherkin could reveal (#667)
196
+ * generated spec against the Gherkin could reveal (#667).
197
+ * The third is the RENDER-time half #667 could not reach: the clause parsed and the
198
+ * container resolved, but the step form that won the sentence emits a locator built
199
+ * inline and never applies it. Judged on the emitted code — every path that honours a
200
+ * scope emits the resolved container locator verbatim, so its absence IS the drop —
201
+ * which makes the check total rather than a list of templates to keep in sync. Found
202
+ * via `see [学科] label with {{v}} in [Education Card 6] card` compiling to a page-wide
203
+ * `getByText` on a screen repeating ten identical cards (#747)
204
+ * SG-W037 — a `type: page` entry says something about the QUERY that the compiler cannot use.
205
+ * Two causes, one code, and the same root confusion behind both: a bare `see [X] page`
206
+ * asserts the URL carries NO query (#464), which is unsatisfiable for a page keyed by
207
+ * one (`/admins/detail?id=5`, where the id comes from the row just clicked). Either the
208
+ * entry's `value` carries a `?`/`#` — dropped, because a page value is the path only and
209
+ * the pattern is matched against `u.pathname`, which never holds a query — or `query:`
210
+ * declares something other than `any`, which is ignored rather than read as permissive,
211
+ * since a typo must never quietly switch off the #464 assertion. Both used to be silent,
212
+ * and the first is how #748 was misdiagnosed in the field as a regex-escaping bug: the
213
+ * obvious workaround produced byte-identical output and no hint why
195
214
  * SG-W029 — a mobile (appium) feature compiled with NO usable app-package `Path:` — either the line
196
215
  * is missing outright, or it holds a web-style route (`Path: /applied-jobs`) that the
197
216
  * package guard rejects. Both used to be silent, and both cost the same two things: the
@@ -255,9 +274,21 @@
255
274
  * than the one the scenario means, and nothing else would ever say so. Not reported for
256
275
  * testid/label/placeholder/role+name/text entries, which name a particular thing —
257
276
  * warning there would fire on nearly every capture in a suite
277
+ * SG-E038 — a `{{var}}` the compiler cannot resolve: no test-data file for the feature, no such
278
+ * key, or a key holding a list/map where a value was needed. Twenty-four step patterns
279
+ * used to catch this and emit the PLACEHOLDER TEXT as the value — `fill [ID] with
280
+ * {{valid_partner_id}}` compiled to `fill('${valid_partner_id}')`, generate exited 0,
281
+ * and the literal 20 characters were typed into the app. The field under test applied
282
+ * no format validation, so the string was accepted, the server saw an unknown user, and
283
+ * the scenario failed at the assertion it was written to fail at, for the reason it was
284
+ * written to fail: a suite that looked exactly right while feeding the system garbage.
285
+ * Worse than one wrong value — every run shared the SAME literal id, so a scenario
286
+ * needing a fresh user silently reused one and its state leaked between runs (#781).
287
+ * Note a feature resolves `{{var}}` against a data file named after ITSELF, so the
288
+ * second `.feature` in a screen directory starts life with no data file at all
258
289
  * Diagnostics never change the EXIT CODE by themselves; `sungen generate --strict` turns any
259
290
  * collected diagnostic into a non-zero exit. They are not all inert, though: SG-W001, SG-W011,
260
- * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026, SG-E027 and SG-E035 additionally compile
291
+ * SG-E020, SG-E021, SG-W020, SG-E023, SG-E024, SG-E025, SG-E026, SG-E027, SG-E035 and SG-E038 additionally compile
261
292
  * the offending step to a runtime `throw` — a step that reads as a check and silently checks
262
293
  * nothing is worse than one that fails loudly — and SG-E031 refuses the file outright. (SG-E022 is
263
294
  * the one exception to the "blame the Gherkin" rule and throws nothing: the file is still written
@@ -265,7 +296,7 @@
265
296
  * Generation always COMPLETES — the rest of the scenario and the rest of the file still compile.
266
297
  */
267
298
 
268
- export type DiagnosticCode = 'SG-W001' | 'SG-W002' | 'SG-W003' | 'SG-W004' | 'SG-W005' | 'SG-W006' | 'SG-W007' | 'SG-W008' | 'SG-W009' | 'SG-W010' | 'SG-W011' | 'SG-W012' | 'SG-W013' | 'SG-W014' | 'SG-W015' | 'SG-W016' | 'SG-W017' | 'SG-W018' | 'SG-E020' | 'SG-E021' | 'SG-W020' | 'SG-W021' | 'SG-W022' | 'SG-W023' | 'SG-W024' | 'SG-W026' | 'SG-E025' | 'SG-E026' | 'SG-E022' | 'SG-E023' | 'SG-E024' | 'SG-E027' | 'SG-W028' | 'SG-W029' | 'SG-W030' | 'SG-E031' | 'SG-W032' | 'SG-W034' | 'SG-E035' | 'SG-W036';
299
+ export type DiagnosticCode = 'SG-W001' | 'SG-W002' | 'SG-W003' | 'SG-W004' | 'SG-W005' | 'SG-W006' | 'SG-W007' | 'SG-W008' | 'SG-W009' | 'SG-W010' | 'SG-W011' | 'SG-W012' | 'SG-W013' | 'SG-W014' | 'SG-W015' | 'SG-W016' | 'SG-W017' | 'SG-W018' | 'SG-E020' | 'SG-E021' | 'SG-W020' | 'SG-W021' | 'SG-W022' | 'SG-W023' | 'SG-W024' | 'SG-W026' | 'SG-E025' | 'SG-E026' | 'SG-E022' | 'SG-E023' | 'SG-E024' | 'SG-E027' | 'SG-W028' | 'SG-W029' | 'SG-W030' | 'SG-E031' | 'SG-W032' | 'SG-W034' | 'SG-E035' | 'SG-W036' | 'SG-W037' | 'SG-E038';
269
300
 
270
301
  export interface Diagnostic {
271
302
  code: DiagnosticCode;
@@ -193,6 +193,7 @@ export class PatternRegistry {
193
193
  comment: resolved.comment,
194
194
  pattern: pattern.name,
195
195
  templateData: resolved.data,
196
+ parentLocator,
196
197
  };
197
198
  }
198
199
 
@@ -202,7 +203,7 @@ export class PatternRegistry {
202
203
  if (generatorStateMiss) return generatorStateMiss;
203
204
  // A generator returning nothing still falls through to the no-pattern path.
204
205
  const generated = pattern.generator(step, scoped);
205
- return generated ? { ...generated, pattern: pattern.name } : null;
206
+ return generated ? { ...generated, pattern: pattern.name, parentLocator } : null;
206
207
  }
207
208
 
208
209
  return null;
@@ -447,17 +448,23 @@ export class PatternRegistry {
447
448
 
448
449
  /**
449
450
  * Resolve a `{{var}}` written where literal text is expected, leaving anything else untouched.
450
- * An unknown variable stays as written rather than throwing — the locator is then wrong in a way
451
- * the author can read, which beats losing the whole step.
451
+ *
452
+ * An unresolvable ref is NOT kept as written. That was the last of the #781 swallows, and the
453
+ * hardest to see, because the old rationale — "the locator is then wrong in a way the author can
454
+ * read, which beats losing the whole step" — is true of a locator NAME and false here. The second
455
+ * `with` in `see [Tag] header with {{label}} in [Job Card] card with {{job_title}}` binds to the
456
+ * PARENT scope, so the value lands in `.filter({ hasText: '{{job_title}}' })`: a scope that can
457
+ * never match, compiled with ZERO diagnostics and `generate` exiting 0. The author then reads a
458
+ * "element not found" timeout that says nothing about the missing test-data key.
459
+ *
460
+ * Letting it throw routes it to StepMapper.mapStep like every other ref, so the step names the
461
+ * ref and the file it wanted. Only a string that IS exactly `{{ref}}` is ever resolved here;
462
+ * anything else is returned untouched, so ordinary literal text is unaffected.
452
463
  */
453
464
  private static resolveInlineData(text: string, context: PatternContext): string {
454
465
  const match = text.match(/^\{\{([a-z0-9\-._]+)\}\}$/i);
455
466
  if (!match) return text;
456
- try {
457
- return context.dataResolver.resolveData(match[1], context.featureName);
458
- } catch {
459
- return text;
460
- }
467
+ return context.dataResolver.resolveData(match[1], context.featureName);
461
468
  }
462
469
 
463
470
  /**
@@ -96,6 +96,21 @@ export interface PatternContext {
96
96
  adapterName?: string;
97
97
  /** Compile-diagnostics channel, so the pattern layer can report instead of throwing. */
98
98
  diagnostics?: DiagnosticsSink;
99
+ /**
100
+ * The container locator the step's `in [Parent] <type>` clause resolved to, already rendered —
101
+ * set by `withParentScope`, absent when the step carries no scope clause.
102
+ *
103
+ * `withParentScope` also stamps this onto everything the pattern RESOLVES, which is the seam that
104
+ * serves the ordinary case. It is not enough on its own: a pattern whose locator is not built from
105
+ * a selectors.yaml entry never has a `resolved` object to carry it. `see [学科] label with {{v}}`
106
+ * is exactly that — the ref names on-screen CAPTION text, so the common case has no entry at all,
107
+ * `resolveSelector` throws, and the branch renders from `{}`. The scope was then dropped with no
108
+ * diagnostic (#747), which is the silence #667 set out to end.
109
+ *
110
+ * Read it ONLY where the template's locator is built inline rather than from `resolved`; every
111
+ * other pattern gets the scope through `resolved` and must not apply it twice.
112
+ */
113
+ parentLocator?: string;
99
114
  /** App profile (qa/app.yaml merged over presets/defaults) — widget variants, recipes,
100
115
  * loading indicator, table row conventions. Typed loosely to keep the SPI decoupled;
101
116
  * the concrete shape is ResolvedAppProfile. */
@@ -14,6 +14,11 @@ import { PatternContext } from './types';
14
14
  * Only the target's own scope is stamped; anything a pattern resolves that ALREADY carries a
15
15
  * `parentLocator` is left alone, so a pattern that builds its own container chain (table rows) keeps
16
16
  * winning over the generic one.
17
+ *
18
+ * The scope also rides on the CONTEXT itself, not only on what the pattern resolves. A pattern whose
19
+ * locator is built inline — `see [X] label with {{v}}` matches on-screen caption text and usually
20
+ * has no selectors.yaml entry at all, so `resolveSelector` throws and the branch renders from `{}` —
21
+ * has no `resolved` object for the stamp to land on, and lost the scope silently (#747).
17
22
  */
18
23
  export function withParentScope(context: PatternContext, parentLocator: string): PatternContext {
19
24
  const scope = <T>(resolved: T): T =>
@@ -35,6 +40,7 @@ export function withParentScope(context: PatternContext, parentLocator: string):
35
40
 
36
41
  return {
37
42
  ...context,
43
+ parentLocator,
38
44
  selectorResolver,
39
45
  renderLocator: (resolved: any) => context.renderLocator(scope(resolved)),
40
46
  };
@@ -4,7 +4,7 @@ import { TemplateEngine } from './template-engine';
4
4
  import { adapterRegistry } from './adapters';
5
5
  import { PatternRegistry, PatternContext, Platform } from './patterns';
6
6
  import { SelectorResolver, type ResolvedSelector } from './utils/selector-resolver';
7
- import { DataResolver } from './utils/data-resolver';
7
+ import { DataResolver, DataRefError } from './utils/data-resolver';
8
8
  import { locatorIdentityKey } from './utils/dialog-scope-identity';
9
9
  import { DiagnosticsCollector } from './diagnostics';
10
10
  import { unsupportedStepCode } from './patterns/unsupported-step-code';
@@ -44,6 +44,9 @@ export interface MappedStep {
44
44
  imports?: string[]; // Required imports
45
45
  pattern?: string; // Name of the step form that produced the code (post-map guards read it)
46
46
  templateData?: Record<string, any>; // What the resolver handed the template (e.g. a recorded refusal)
47
+ /** The container locator the step's `in [Parent] <type>` clause resolved to, when it carried one.
48
+ * Recorded so a post-map guard can check the scope actually reached the code (SG-W028, #747). */
49
+ parentLocator?: string;
47
50
  }
48
51
 
49
52
  /**
@@ -226,7 +229,45 @@ export class StepMapper {
226
229
  * Map a Gherkin step to Playwright code
227
230
  * Uses pattern registry first, falls back to AI if enabled
228
231
  */
232
+ /**
233
+ * SG-E038 — the ONE place an unresolvable `{{var}}` is answered.
234
+ *
235
+ * Twenty-four step patterns used to catch the resolver's failure each in their own way and
236
+ * substitute the placeholder TEXT as the value, so `fill [ID] with {{valid_partner_id}}` shipped
237
+ * `fill('${valid_partner_id}')` — 20 literal characters typed into the app, `generate` exiting 0,
238
+ * and a scenario that failed exactly where it was written to fail, for the reason it was written
239
+ * to fail. Nothing told the run apart from a correct one (#781).
240
+ *
241
+ * The step now compiles to a throw naming the ref and the file, which is the house answer to
242
+ * "the compiler would otherwise invent something" (SG-E023/E024/E026 all work this way). A throw
243
+ * is preferred over letting the error kill the feature file, because one run then reports EVERY
244
+ * unresolved ref instead of the first; `--strict` turns the diagnostic into exit 1.
245
+ */
229
246
  mapStep(step: ParsedStep): MappedStep | Promise<MappedStep> {
247
+ try {
248
+ return this.mapStepResolving(step);
249
+ } catch (err) {
250
+ if (err instanceof DataRefError) return this.unresolvedDataRef(step, err);
251
+ throw err;
252
+ }
253
+ }
254
+
255
+ private unresolvedDataRef(step: ParsedStep, err: DataRefError): MappedStep {
256
+ const fix = err.file
257
+ ? `add a "${err.dataRef}" key to ${err.file}`
258
+ : `define "${err.dataRef}" in the feature's test-data file`;
259
+ const reason =
260
+ `step "${step.text}": {{${err.dataRef}}} does not resolve — ${err.message}. `
261
+ + `${fix}, or reference a key that exists. The step compiles to this throw rather than `
262
+ + `typing the literal text "\${${err.dataRef}}" into the app as if it were data.`;
263
+ this.diagnostics?.add('SG-E038', reason, { feature: this.featureName, step: step.text });
264
+ return {
265
+ code: unsupportedStepCode(reason),
266
+ comment: `Unresolved {{${err.dataRef}}} — see SG-E038: ${step.text}`,
267
+ };
268
+ }
269
+
270
+ private mapStepResolving(step: ParsedStep): MappedStep | Promise<MappedStep> {
230
271
  this.stepCounter++;
231
272
 
232
273
  // Track effective keyword: And/But inherit from previous Given/When/Then
@@ -377,12 +418,7 @@ export class StepMapper {
377
418
  // Case 3: [panel] dialog with {{value}}
378
419
  // Use dataRef as filter text — the dialog name is dynamic (from test-data),
379
420
  // so use .filter({ hasText }) instead of { name } for reliable matching
380
- let filterText = '';
381
- try {
382
- filterText = this.dataResolver.resolveData(step.dataRef, this.featureName);
383
- } catch {
384
- filterText = `\${${step.dataRef}}`;
385
- }
421
+ const filterText = this.dataResolver.resolveData(step.dataRef, this.featureName);
386
422
  contextVars.dialogFilterText = filterText;
387
423
  // The declared entry still owns the ROOT the filter applies to — but only when it
388
424
  // is a non-role strategy (locator/testid/css). A role entry keeps the bare
@@ -474,6 +510,10 @@ export class StepMapper {
474
510
  if (rowFilterDropped) return rowFilterDropped;
475
511
  const badType = this.checkUnknownSelectorType(step, mappedStep);
476
512
  if (badType) return badType;
513
+ // LAST of the guards, and deliberately so: every check above can REPLACE the step with a
514
+ // refusal, and reporting a dropped scope against code that is about to be discarded is the
515
+ // "two contradictory messages about one step" this guard's own doc rules out.
516
+ this.checkParentScopeDropped(step, mappedStep);
477
517
  return mappedStep;
478
518
  }
479
519
 
@@ -745,6 +785,49 @@ export class StepMapper {
745
785
  return null;
746
786
  }
747
787
 
788
+ /**
789
+ * The container scope parsed, resolved — and then never reached the emitted code.
790
+ *
791
+ * #667 closed the parse-time half of this: an `in [X] <word>` whose `<word>` is not a container
792
+ * type is reported (SG-W028) rather than truncated. It could not close the render-time half,
793
+ * because honouring the scope is per-template work: the registry stamps `parentLocator` on what a
794
+ * RESOLVER hands back and `withParentScope` stamps it on what any pattern RESOLVES, but a branch
795
+ * that builds its locator inline and renders from hand-picked fields receives neither. Three did,
796
+ * and `see [学科] label with {{v}} in [Education Card 6] card` compiled to a page-wide
797
+ * `getByText` with no diagnostic at all (#747) — a green test reading a card the sentence never
798
+ * names, findable only by diffing the generated spec against the Gherkin.
799
+ *
800
+ * So the fact is taken from the OUTPUT, exactly as SG-W032 takes the row filter from `.filter(`:
801
+ * every path that honours a container scope emits the resolved container locator verbatim, so its
802
+ * absence from the code IS the drop. That makes the guard total — it covers every template that
803
+ * exists now and every one added later, without a list to keep in sync.
804
+ *
805
+ * A step already refused elsewhere is excluded: it compiles to a `throw`, and a second opinion on
806
+ * top of a refusal is two contradictory messages about one step (SG-W032's reasoning, unchanged).
807
+ * The `throw` test covers a refusal the PATTERN layer recorded; a refusal one of the guards above
808
+ * substitutes is covered by call order instead — this one runs last.
809
+ *
810
+ * Returns `void`, not `MappedStep | null` like its siblings: it only ever REPORTS. Typed that way
811
+ * on purpose, so a future edit copying the sibling shape cannot assume a replacement step is being
812
+ * consumed when nothing is looking at one.
813
+ */
814
+ private checkParentScopeDropped(step: ParsedStep, mapped: MappedStep): void {
815
+ const parent = mapped.parentLocator;
816
+ if (!parent) return;
817
+ const code = mapped.code || '';
818
+ if (code.startsWith('throw new Error(')) return;
819
+ if (code.includes(parent)) return;
820
+
821
+ this.diagnostics?.add('SG-W028',
822
+ `step "${step.text}" names the container [${step.parentRef}] but the generated code does not `
823
+ + `scope to it — the step runs against the WHOLE page, so it fails where the target repeats and `
824
+ + `passes on a DIFFERENT [${step.parentRef}] where it does not. The "${mapped.pattern}" step `
825
+ + `form does not carry a container scope. Assert on an element the container owns (give it a `
826
+ + `selectors.yaml entry and use "has text"/"contains"), or drop the clause so the sentence `
827
+ + `matches what is actually checked.`,
828
+ { feature: this.featureName, step: step.text });
829
+ }
830
+
748
831
  private checkAssertionClauseSwallowed(step: ParsedStep, mapped: MappedStep): MappedStep | null {
749
832
  const code = mapped.code || '';
750
833
  // Bare visibility: nothing but a visible/displayed assertion on one locator.
@@ -831,7 +914,6 @@ export class StepMapper {
831
914
  // delimiters, so the code may carry `__SUNGEN_TD\$key\$__` instead of the plain form.
832
915
  const marker = DataResolver.encodeMarker(step.dataRef);
833
916
  if (code.includes(marker) || code.includes(marker.replace(/\$/g, '\\$'))) return;
834
- if (code.includes(`\${${step.dataRef}}`)) return; // unresolved fallback
835
917
  if (code.includes(step.dataRef)) return; // testData.set('ref'), comments
836
918
  try {
837
919
  const value = this.dataResolver.resolveData(step.dataRef, this.featureName);