Skip to content

Commit 5507acc

Browse files
authored
Merge branch 'develop' into MQE-974
2 parents 787911d + 53ec0e8 commit 5507acc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Magento/FunctionalTestingFramework/Suite/Generators/GroupClassGenerator.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)