File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Magento/FunctionalTestingFramework/Suite/Generators Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ class GroupClassGenerator
27
27
const LAST_REQUIRED_ENTITY_TAG = 'last ' ;
28
28
const MUSTACHE_VAR_TAG = 'var ' ;
29
29
const MAGENTO_CLI_COMMAND_COMMAND = 'command ' ;
30
- const DATA_PERSISTENCE_ACTIONS = ["createData " , "deleteData " ];
31
30
const REPLACEMENT_ACTIONS = [
32
31
'comment ' => 'print '
33
32
];
@@ -133,7 +132,9 @@ private function buildHookMustacheArray($hookObj)
133
132
foreach ($ hookObj ->getActions () as $ action ) {
134
133
/** @var ActionObject $action */
135
134
$ index = count ($ actions );
136
- if (!in_array ($ action ->getType (), self ::DATA_PERSISTENCE_ACTIONS )) {
135
+ //deleteData contains either url or createDataKey, if it contains the former it needs special formatting
136
+ if ($ action ->getType () !== "createData "
137
+ && !array_key_exists (TestGenerator::REQUIRED_ENTITY_REFERENCE , $ action ->getCustomActionAttributes ())) {
137
138
if (!$ hasWebDriverActions ) {
138
139
$ hasWebDriverActions = true ;
139
140
}
You can’t perform that action at this time.
0 commit comments