testdriverai 7.3.11 → 7.3.12
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/sdk.js +2 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -1376,15 +1376,14 @@ class TestDriverSDK {
|
|
|
1376
1376
|
// Handle preview mode with backwards compatibility for headless option
|
|
1377
1377
|
// Preview can be "browser" (default), "ide", or "none" (headless)
|
|
1378
1378
|
let previewMode = options.preview || process.env.TD_PREVIEW;
|
|
1379
|
-
console.log("[DEBUG SDK constructor] options.preview:", options.preview, "previewMode:", previewMode);
|
|
1380
1379
|
|
|
1381
1380
|
// Backwards compatibility: headless: true maps to preview: "none"
|
|
1382
|
-
|
|
1381
|
+
// headless: true takes precedence over any preview setting
|
|
1382
|
+
if (options.headless === true) {
|
|
1383
1383
|
previewMode = "none";
|
|
1384
1384
|
} else if (!previewMode) {
|
|
1385
1385
|
previewMode = "browser"; // default
|
|
1386
1386
|
}
|
|
1387
|
-
console.log("[DEBUG SDK constructor] final previewMode:", previewMode);
|
|
1388
1387
|
|
|
1389
1388
|
// Set up environment with API key
|
|
1390
1389
|
const environment = {
|