@cutleryapp/agent 1.0.29 → 1.0.31
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/mcp-executor.js +6 -2
- package/package.json +1 -1
package/dist/mcp-executor.js
CHANGED
|
@@ -148,8 +148,12 @@ class TestExecutor {
|
|
|
148
148
|
};
|
|
149
149
|
for (const field of fields) {
|
|
150
150
|
const key = field.toLowerCase().replace(/[\s_-]+/g, "");
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
// Test data first, then AI default map, then fallback
|
|
152
|
+
const dataValue = varMap[field] ?? varMap[key] ??
|
|
153
|
+
Object.entries(varMap).find(([k]) => k.toLowerCase().replace(/[\s_-]+/g, "") === key)?.[1];
|
|
154
|
+
const value = dataValue ?? valueMap[key] ?? "Test Value";
|
|
155
|
+
const src = dataValue ? "test data" : "AI default";
|
|
156
|
+
console.log(` ⌨️ Multi-fill: "${field}" → "${value}" (${src})`);
|
|
153
157
|
try {
|
|
154
158
|
await tryFill(page, field, value);
|
|
155
159
|
}
|