botium-core 1.15.12 → 1.15.13
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/botium-cjs.js +14 -1
- package/dist/botium-cjs.js.map +1 -1
- package/dist/botium-es.js +14 -1
- package/dist/botium-es.js.map +1 -1
- package/package.json +1 -1
- package/src/mocks/BotiumMockScripting.js +3 -0
- package/src/scripting/Convo.js +10 -0
- package/test/scripting/logichooks/convos/scripting_memory_resolved_args.convo.txt +11 -0
- package/test/scripting/logichooks/setClearScriptingMemory.spec.js +14 -0
package/dist/botium-cjs.js
CHANGED
|
@@ -116,7 +116,7 @@ var boolean_1 = {
|
|
|
116
116
|
};
|
|
117
117
|
|
|
118
118
|
var name = "botium-core";
|
|
119
|
-
var version$1 = "1.15.
|
|
119
|
+
var version$1 = "1.15.13";
|
|
120
120
|
var description = "The Selenium for Chatbots";
|
|
121
121
|
var main = "index.js";
|
|
122
122
|
var module$1 = "dist/botium-es.js";
|
|
@@ -1570,18 +1570,21 @@ class BotiumMockAsserter$1 {
|
|
|
1570
1570
|
this.name = fromJson.name;
|
|
1571
1571
|
this.args = lodash__default["default"].cloneDeep(fromJson.args);
|
|
1572
1572
|
this.not = fromJson.not;
|
|
1573
|
+
this.resolvedArgs = fromJson.resolvedArgs || null;
|
|
1573
1574
|
}
|
|
1574
1575
|
}
|
|
1575
1576
|
class BotiumMockUserInput$1 {
|
|
1576
1577
|
constructor(fromJson = {}) {
|
|
1577
1578
|
this.name = fromJson.name;
|
|
1578
1579
|
this.args = lodash__default["default"].cloneDeep(fromJson.args);
|
|
1580
|
+
this.resolvedArgs = fromJson.resolvedArgs || null;
|
|
1579
1581
|
}
|
|
1580
1582
|
}
|
|
1581
1583
|
class BotiumMockLogicHook$1 {
|
|
1582
1584
|
constructor(fromJson = {}) {
|
|
1583
1585
|
this.name = fromJson.name;
|
|
1584
1586
|
this.args = lodash__default["default"].cloneDeep(fromJson.args);
|
|
1587
|
+
this.resolvedArgs = fromJson.resolvedArgs || null;
|
|
1585
1588
|
}
|
|
1586
1589
|
}
|
|
1587
1590
|
var BotiumMockScripting = {
|
|
@@ -3564,6 +3567,16 @@ class Convo$6 {
|
|
|
3564
3567
|
} finally {
|
|
3565
3568
|
if (convoStep.sender !== 'begin' && convoStep.sender !== 'end' && !skipTranscriptStep) {
|
|
3566
3569
|
transcriptStep.scriptingMemory = Object.assign({}, scriptingMemory);
|
|
3570
|
+
if (container.caps[Capabilities.SCRIPTING_ENABLE_MEMORY] && transcriptStep.expected) {
|
|
3571
|
+
const _resolveItemArgs = items => {
|
|
3572
|
+
(items || []).forEach(item => {
|
|
3573
|
+
item.resolvedArgs = ScriptingMemory.applyToArgs(item.args, scriptingMemory, container.caps);
|
|
3574
|
+
});
|
|
3575
|
+
};
|
|
3576
|
+
_resolveItemArgs(transcriptStep.expected.asserters);
|
|
3577
|
+
_resolveItemArgs(transcriptStep.expected.logicHooks);
|
|
3578
|
+
_resolveItemArgs(transcriptStep.expected.userInputs);
|
|
3579
|
+
}
|
|
3567
3580
|
transcriptStep.stepEnd = new Date();
|
|
3568
3581
|
transcriptSteps.push(transcriptStep);
|
|
3569
3582
|
}
|