aboutsummaryrefslogtreecommitdiffstats
path: root/workflow/workflow-bdd/stepDefinitions/InputData_steps.js
diff options
context:
space:
mode:
Diffstat (limited to 'workflow/workflow-bdd/stepDefinitions/InputData_steps.js')
-rw-r--r--workflow/workflow-bdd/stepDefinitions/InputData_steps.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/workflow/workflow-bdd/stepDefinitions/InputData_steps.js b/workflow/workflow-bdd/stepDefinitions/InputData_steps.js
index 73695d0e..6263bb73 100644
--- a/workflow/workflow-bdd/stepDefinitions/InputData_steps.js
+++ b/workflow/workflow-bdd/stepDefinitions/InputData_steps.js
@@ -64,6 +64,16 @@ Then('I want to update the input property {string} with value {string}', functio
/**
* @module InputData
+ * @description sets the property on the input data to the value of the given property
+ * @exampleFile WorkflowList.feature
+ * @step I want to update the input property {string} with value of property {string}
+ **/
+Then('I want to update the input property {string} with value of property {string}', function(string, string2) {
+ _.set(this.context.inputData, string, _.get(this.context, string2));
+});
+
+/**
+ * @module InputData
* @description removes a property from the input data object
* @exampleFile Example_Rest_Calls.feature
* @step I want to remove {string} from the input data