Skip to content

Commit c0d491c

Browse files
committed
MQE-1439: Invalid XML character in AdminDateFormatOnAttributePageTest causes Allure report parse error
1 parent a039d1d commit c0d491c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public function stepBefore(StepEvent $stepEvent)
117117

118118
$stepName = $stepAction . ' ' . $stepArgs;
119119

120+
// Strip control characters so that report generation does not fail
121+
$stepName = preg_replace('/[[:cntrl:]]/', '', $stepName);
122+
120123
$this->emptyStep = false;
121124
$this->getLifecycle()->fire(new StepStartedEvent($stepName));
122125
}

0 commit comments

Comments
 (0)