ccqa 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {
@@ -6,7 +6,7 @@ declare function abWait(selector: string, timeoutMs?: number): void;
6
6
  declare function abAssertTextVisible(text: string, timeoutMs?: number): void;
7
7
  /** Assert element is visible (via wait). */
8
8
  declare function abAssertVisible(selector: string, timeoutMs?: number): void;
9
- /** Assert element is NOT visible (via wait --state hidden). */
9
+ /** Assert element is NOT visible (via wait --state hidden or --fn for text). */
10
10
  declare function abAssertNotVisible(selector: string, timeoutMs?: number): void;
11
11
  /** Assert URL contains a pattern (via get url). */
12
12
  declare function abAssertUrl(pattern: string): void;
@@ -66,15 +66,13 @@ function abAssertVisible(selector, timeoutMs = 3e4) {
66
66
  ]);
67
67
  if (result.status !== 0) fail(`Assertion failed: ${JSON.stringify(selector)} not visible within ${timeoutMs}ms`, result);
68
68
  }
69
- /** Assert element is NOT visible (via wait --state hidden). */
69
+ /** Assert element is NOT visible (via wait --state hidden or --fn for text). */
70
70
  function abAssertNotVisible(selector, timeoutMs = 3e4) {
71
71
  logStep("assert.hidden", [selector]);
72
72
  const result = spawnAB(selector.startsWith("text=") ? [
73
73
  "wait",
74
- "--text",
75
- selector.slice(5),
76
- "--state",
77
- "hidden",
74
+ "--fn",
75
+ `!document.body.innerText.includes(${JSON.stringify(selector.slice(5))})`,
78
76
  "--timeout",
79
77
  String(timeoutMs)
80
78
  ] : [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccqa",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Browser test recorder powered by Claude Code and agent-browser",
6
6
  "repository": {