@cutleryapp/agent 1.0.30 → 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.
@@ -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
- const value = valueMap[key] || "Test Value";
152
- console.log(` ⌨️ Multi-fill: "${field}" "${value}"`);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cutleryapp/agent",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Local agent that connects your machine to the Cutlery QA platform and runs UI tests via Playwright",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {