ccqa 1.40.5 → 1.40.6

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.
package/dist/bin/ccqa.mjs CHANGED
@@ -1660,7 +1660,7 @@ async function invokeClaudeStreaming(options, onEvent) {
1660
1660
  };
1661
1661
  if (hasRefSelector(cmd)) return {
1662
1662
  decision: "block",
1663
- reason: "@ref selectors (like @e14) are session-specific and change every run. They cannot be used in generated tests. Use one of the allowed selector formats instead: [aria-label='...'], text=..., [placeholder='...'], or [type='password']. Take a fresh snapshot and find the element's aria-label or visible text."
1663
+ reason: "@ref selectors (like @e14) are session-specific and change every run. They cannot be used in generated tests. Use one of the allowed selector formats instead: [aria-label='...'], text=..., [placeholder='...'], or [type='password']. Take a fresh snapshot and find the element's aria-label or visible text. If an allowed selector already clicks the element but nothing happens, the element is clipped by an inner scroll container: `scrollintoview` it (addressed by a CSS selector, not `text=`) and click again — a @ref would not have fixed that either."
1664
1664
  };
1665
1665
  const bareTag = findPositionalBareTag(cmd);
1666
1666
  if (bareTag !== null) return {
@@ -17829,6 +17829,7 @@ find nth <index> "<ALLOWED-css>" <action>
17829
17829
  5. For checkboxes: try \`check "text=Label"\` or \`check "[aria-label='Label']"\`.
17830
17830
  6. If repeated labels make every ALLOWED selector ambiguous → use the \`find\` subset above.
17831
17831
  7. Never guess. If a selector fails, take a fresh snapshot before retrying.
17832
+ 8. **A click that reports success but changes nothing means the element sits outside the visible part of an inner scroll container** — the event dispatches, the app never reacts, and no error is printed. Run \`scrollintoview\` on the element and click again. Scroll to the element itself, addressed by a CSS selector (\`scrollintoview "button.primary-action"\`); \`scrollintoview "text=…"\` can land on a text node that leaves the control still clipped. Do not read this as a product bug or reach for a \`@ref\` — verify by checking that the DOM changed (e.g. \`get count\` on what the click should have produced).
17832
17833
 
17833
17834
  ### Special input types
17834
17835
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "1.40.5",
3
+ "version": "1.40.6",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "1.40.5",
3
+ "version": "1.40.6",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {