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
2727 const LAST_REQUIRED_ENTITY_TAG = 'last ' ;
2828 const MUSTACHE_VAR_TAG = 'var ' ;
2929 const MAGENTO_CLI_COMMAND_COMMAND = 'command ' ;
30- const DATA_PERSISTENCE_ACTIONS = ["createData " , "deleteData " ];
3130 const REPLACEMENT_ACTIONS = [
3231 'comment ' => 'print '
3332 ];
@@ -133,7 +132,9 @@ private function buildHookMustacheArray($hookObj)
133132 foreach ($ hookObj ->getActions () as $ action ) {
134133 /** @var ActionObject $action */
135134 $ 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 ())) {
137138 if (!$ hasWebDriverActions ) {
138139 $ hasWebDriverActions = true ;
139140 }
You can’t perform that action at this time.
0 commit comments