intellitester 0.3.4 → 0.3.5

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk3WGXVL6J_cjs = require('./chunk-3WGXVL6J.cjs');
3
+ var chunkIY5L57RE_cjs = require('./chunk-IY5L57RE.cjs');
4
4
  var chunkYNHXOSMZ_cjs = require('./chunk-YNHXOSMZ.cjs');
5
5
  var chunk2ZSINOCK_cjs = require('./chunk-2ZSINOCK.cjs');
6
6
  var uniqueNamesGenerator = require('unique-names-generator');
@@ -2115,13 +2115,17 @@ async function executeActionWithRetry(page, action, index, options) {
2115
2115
  const typeAction = action;
2116
2116
  const interpolated = interpolateVariables(typeAction.value, context.variables);
2117
2117
  if (debugMode) {
2118
- console.log(`[DEBUG] Typing value into element:`, typeAction.target);
2118
+ console.log(`[DEBUG] Typing value:`, typeAction.target ?? "(focused element)");
2119
2119
  console.log(`[DEBUG] Value: ${interpolated}`);
2120
2120
  if (typeAction.frame) console.log(`[DEBUG] In frame:`, typeAction.frame);
2121
2121
  }
2122
- const frameContext = getActionContext(page, typeAction.frame);
2123
- const handle = resolveLocatorInContext(frameContext, typeAction.target);
2124
- await handle.pressSequentially(interpolated, { delay: typeAction.delay ?? 50 });
2122
+ if (typeAction.target) {
2123
+ const frameContext = getActionContext(page, typeAction.frame);
2124
+ const handle = resolveLocatorInContext(frameContext, typeAction.target);
2125
+ await handle.pressSequentially(interpolated, { delay: typeAction.delay ?? 50 });
2126
+ } else {
2127
+ await page.keyboard.type(interpolated, { delay: typeAction.delay ?? 50 });
2128
+ }
2125
2129
  break;
2126
2130
  }
2127
2131
  case "clear": {
@@ -2567,7 +2571,7 @@ async function executeActionWithRetry(page, action, index, options) {
2567
2571
  });
2568
2572
  }
2569
2573
  } else {
2570
- const { loadWorkflowDefinition, loadTestDefinition: loadTestDefinition2 } = await import('./loader-5MU7ICSQ.cjs');
2574
+ const { loadWorkflowDefinition, loadTestDefinition: loadTestDefinition2 } = await import('./loader-UH2VRIAW.cjs');
2571
2575
  const workflowPath = path4__namespace.default.resolve(process.cwd(), branchToExecute.workflow);
2572
2576
  const workflowDir = path4__namespace.default.dirname(workflowPath);
2573
2577
  if (debugMode) {
@@ -3652,7 +3656,7 @@ async function runTestInWorkflow(test, page, context, options, _workflowDir, wor
3652
3656
  if (debugMode) {
3653
3657
  console.log(` [DEBUG] waitForBranch: loading workflow from ${workflowPath}`);
3654
3658
  }
3655
- const { loadWorkflowDefinition } = await import('./loader-5MU7ICSQ.cjs');
3659
+ const { loadWorkflowDefinition } = await import('./loader-UH2VRIAW.cjs');
3656
3660
  const nestedWorkflow = await loadWorkflowDefinition(workflowPath);
3657
3661
  if (branch.variables) {
3658
3662
  for (const [key, value] of Object.entries(branch.variables)) {
@@ -3662,7 +3666,7 @@ async function runTestInWorkflow(test, page, context, options, _workflowDir, wor
3662
3666
  }
3663
3667
  for (const testRef of nestedWorkflow.tests) {
3664
3668
  const testFilePath = path4__namespace.default.resolve(path4__namespace.default.dirname(workflowPath), testRef.file);
3665
- const nestedTest = await chunk3WGXVL6J_cjs.loadTestDefinition(testFilePath);
3669
+ const nestedTest = await chunkIY5L57RE_cjs.loadTestDefinition(testFilePath);
3666
3670
  if (nestedTest.variables) {
3667
3671
  for (const [key, value] of Object.entries(nestedTest.variables)) {
3668
3672
  const interpolated = interpolateVariables(value, context.variables);
@@ -3924,7 +3928,7 @@ Starting workflow: ${workflow.name}`);
3924
3928
  console.log(` Test ID: ${testRef.id}`);
3925
3929
  }
3926
3930
  try {
3927
- const test = await chunk3WGXVL6J_cjs.loadTestDefinition(testFilePath);
3931
+ const test = await chunkIY5L57RE_cjs.loadTestDefinition(testFilePath);
3928
3932
  if (testRef.variables) {
3929
3933
  for (const [key, value] of Object.entries(testRef.variables)) {
3930
3934
  const interpolated = interpolateWorkflowVariables(
@@ -4371,5 +4375,5 @@ exports.runWorkflowWithContext = runWorkflowWithContext;
4371
4375
  exports.setupAppwriteTracking = setupAppwriteTracking;
4372
4376
  exports.startTrackingServer = startTrackingServer;
4373
4377
  exports.webServerManager = webServerManager;
4374
- //# sourceMappingURL=chunk-HWUIEQKP.cjs.map
4375
- //# sourceMappingURL=chunk-HWUIEQKP.cjs.map
4378
+ //# sourceMappingURL=chunk-CSNHZKHS.cjs.map
4379
+ //# sourceMappingURL=chunk-CSNHZKHS.cjs.map