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.
- package/dist/{chunk-HWUIEQKP.cjs → chunk-CSNHZKHS.cjs} +15 -11
- package/dist/chunk-CSNHZKHS.cjs.map +1 -0
- package/dist/{chunk-G7FCAPNQ.js → chunk-DJQQRM3C.js} +3 -3
- package/dist/chunk-DJQQRM3C.js.map +1 -0
- package/dist/{chunk-3WGXVL6J.cjs → chunk-IY5L57RE.cjs} +3 -3
- package/dist/chunk-IY5L57RE.cjs.map +1 -0
- package/dist/{chunk-Z3JF5S26.js → chunk-IYAZADFI.js} +13 -9
- package/dist/chunk-IYAZADFI.js.map +1 -0
- package/dist/cli/index.cjs +43 -43
- package/dist/cli/index.js +2 -2
- package/dist/index.cjs +35 -35
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +2 -2
- package/dist/{loader-XZXN7COC.js → loader-SZMOBGPT.js} +3 -3
- package/dist/{loader-XZXN7COC.js.map → loader-SZMOBGPT.js.map} +1 -1
- package/dist/{loader-5MU7ICSQ.cjs → loader-UH2VRIAW.cjs} +16 -16
- package/dist/{loader-5MU7ICSQ.cjs.map → loader-UH2VRIAW.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-3WGXVL6J.cjs.map +0 -1
- package/dist/chunk-G7FCAPNQ.js.map +0 -1
- package/dist/chunk-HWUIEQKP.cjs.map +0 -1
- package/dist/chunk-Z3JF5S26.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
|
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
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
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-
|
|
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-
|
|
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
|
|
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
|
|
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-
|
|
4375
|
-
//# sourceMappingURL=chunk-
|
|
4378
|
+
//# sourceMappingURL=chunk-CSNHZKHS.cjs.map
|
|
4379
|
+
//# sourceMappingURL=chunk-CSNHZKHS.cjs.map
|