testdriverai 5.7.16 → 5.7.17

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.
@@ -111,8 +111,31 @@ jobs:
111
111
 
112
112
  - name: Commit updated snippets
113
113
  run: |
114
+ #!/usr/bin/env bash
115
+ set -e
116
+
117
+ # Set Git config
114
118
  git config --global user.name 'github-actions[bot]'
115
119
  git config --global user.email 'github-actions[bot]@users.noreply.github.com'
120
+
121
+ # Stage changes
116
122
  git add docs/snippets/tests
117
- git diff --cached --quiet && echo "No changes to commit" || git commit -m "Update test snippets [skip ci]"
118
- git push
123
+
124
+ # Commit if there are staged changes
125
+ if ! git diff --cached --quiet; then
126
+ git commit -m "Update test snippets [skip ci]"
127
+
128
+ # Extract the current branch name from GitHub Actions environment
129
+ BRANCH_NAME="${GITHUB_REF#refs/heads/}"
130
+
131
+ # Fallback if BRANCH_NAME is empty (e.g., pull request event)
132
+ if [ -z "$BRANCH_NAME" ]; then
133
+ echo "Branch name not found in GITHUB_REF; defaulting to 'main'"
134
+ BRANCH_NAME="main"
135
+ fi
136
+
137
+ # Push the commit to the correct branch
138
+ git push origin HEAD:"$BRANCH_NAME"
139
+ else
140
+ echo "No changes to commit"
141
+ fi
package/lib/overlay.js CHANGED
@@ -39,6 +39,9 @@ module.exports.createOverlayProcess = ({ id, detached = false } = {}) => {
39
39
  electronProcess.on("exit", (code) => {
40
40
  reject(new Error(`Electron process exited with code ${code}`));
41
41
  });
42
+ electronProcess.on("spawn", () => {
43
+ resolve(electronProcess);
44
+ });
42
45
  });
43
46
  };
44
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.16",
3
+ "version": "5.7.17",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {