Skip to content

Commit 7abedb5

Browse files
Fix accessibility test Electron launch in CI
- Explicitly specify Electron executable path - Add debug logging for troubleshooting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5060b3c commit 7abedb5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

electron/tests/accessibility.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,20 @@ const fs = require("fs");
55
async function runAccessibilityTests() {
66
console.log("Starting accessibility tests...");
77

8+
// Get the path to the Electron executable
9+
const electronPath = require("electron");
10+
11+
console.log("Electron path:", electronPath);
12+
console.log("Main script:", path.join(__dirname, "..", "dist", "main", "main.js"));
13+
814
// Launch Electron app
915
const electronApp = await electron.launch({
16+
executablePath: electronPath,
1017
args: [path.join(__dirname, "..", "dist", "main", "main.js")],
18+
env: {
19+
...process.env,
20+
NODE_ENV: "test",
21+
},
1122
});
1223

1324
// Get the first window

0 commit comments

Comments
 (0)