Skip to content

Commit bf34ab1

Browse files
committed
MQE-659: [ALLURE] Include the test "stepKey" in the MFTF Allure Report
1 parent 17b8b9d commit bf34ab1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Magento/FunctionalTestingFramework/Allure/Adapter/MagentoAllureAdapter.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,9 @@ public function testEnd()
198198

199199
$actionGroupStepKey = null;
200200
foreach ($rootStep->getSteps() as $step) {
201-
if ($actionGroupStepKey !== null) {
202-
$stepKey = str_replace($actionGroupStepKey, '', $step->getName());
203-
if ($stepKey !== '[]' && $stepKey !== null) {
204-
$step->setName($stepKey);
205-
}
201+
$stepKey = str_replace($actionGroupStepKey, '', $step->getName());
202+
if ($stepKey !== '[]' && $stepKey !== null) {
203+
$step->setName($stepKey);
206204
}
207205
// if actionGroup flag, start nesting
208206
if (strpos($step->getName(), ActionGroupObject::ACTION_GROUP_CONTEXT_START) !== false) {

src/Magento/FunctionalTestingFramework/Codeception/Subscriber/Console.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function afterStep(StepEvent $e)
6868
*
6969
* @param Step $step
7070
* @return void
71+
* @SuppressWarnings(PHPMD)
7172
*/
7273
private function printStepKeys(Step $step)
7374
{

0 commit comments

Comments
 (0)