Skip to content

Commit

Permalink
Fix/no allure report when using session (codeceptjs#1375)
Browse files Browse the repository at this point in the history
* fixed issue there is no allure report when using session in scenario

* update comment to show more tranparency
  • Loading branch information
kobenguyent authored and DavertMik committed Dec 14, 2018
1 parent 5f4f629 commit 8667740
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/plugin/allure.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ module.exports = (config) => {
if (isHookSteps === false) {
startMetaStep(step.metaStep);
if (currentStep !== step) {
/**
* The reason we need to do this cause
* the step actor contains this and hence
* the allure reporter could not parse and
* generate the report
*/
if (step.actor.includes('\u001b[36m')) {
step.actor = step.actor.replace('\u001b[36m', '').replace('\u001b[39m', '');
}
reporter.startStep(step.toString());
currentStep = step;
}
Expand Down

0 comments on commit 8667740

Please sign in to comment.