Skip to content

Commit 1e12724

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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function testStart(TestEvent $testEvent)
267267
* Append step key to matching step
268268
*
269269
* @param integer $stepCount
270-
* @param string $name
270+
* @param string $name
271271
*
272272
* @return string
273273
*/

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class MagentoAllureStepKeyReader
7272
*/
7373
private $afterSteps;
7474

75-
7675
/**
7776
* steps in test
7877
*
@@ -150,8 +149,8 @@ public function getSteps($passedCount)
150149
$steps = array_slice($this->beforeSteps, 0, $passedCount);
151150
$steps = array_merge($steps, $this->failedSteps);
152151
$steps = array_merge($steps, $this->afterSteps);
153-
} elseif ($passedCount < ($this->stepCount[self::BEFORE_MARK] + $this->stepCount[self::TEST_MARK])) { /* failed in test() */
154-
$steps = $this->beforeSteps;
152+
} elseif ($passedCount < ($this->stepCount[self::BEFORE_MARK] + $this->stepCount[self::TEST_MARK])) {
153+
$steps = $this->beforeSteps; /* failed in test() */
155154
$steps = array_merge(
156155
$steps,
157156
array_slice($this->testSteps, 0, $passedCount - $this->stepCount[self::BEFORE_MARK])

0 commit comments

Comments
 (0)