File tree 1 file changed +7
-1
lines changed
src/Magento/FunctionalTestingFramework/Allure/Adapter
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,13 @@ private function sanitizeGroupName($group)
104
104
}
105
105
106
106
/**
107
- * Override of parent method, only different to prevent replacing of . to •
107
+ * Override of parent method:
108
+ * prevent replacing of . to •
109
+ * strips control characters
108
110
*
109
111
* @param StepEvent $stepEvent
110
112
* @return void
113
+ * @throws \Yandex\Allure\Adapter\AllureException
111
114
*/
112
115
public function stepBefore (StepEvent $ stepEvent )
113
116
{
@@ -129,6 +132,9 @@ public function stepBefore(StepEvent $stepEvent)
129
132
130
133
$ stepName = $ stepAction . ' ' . $ stepArgs ;
131
134
135
+ // Strip control characters so that report generation does not fail
136
+ $ stepName = preg_replace ('/[[:cntrl:]]/ ' , '' , $ stepName );
137
+
132
138
$ this ->emptyStep = false ;
133
139
$ this ->getLifecycle ()->fire (new StepStartedEvent ($ stepName ));
134
140
}
You can’t perform that action at this time.
0 commit comments