Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for unescaped text/html embeds #59

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

yaronassa
Copy link
Contributor

This pull request allows the user to embed the text/html mime type, and have the embed data displayed, unescaped, in the scenario report.

The commit consists of 3 main changes:

  1. Add a text/html mime_type handler to the if structure in _parseSteps. I just collects the data into a .html property on the step.
  2. Add a relevant template structure to handle the .html property. It joins multiple attachments into a single HTML block, separated by a <br/> element.
  3. Add an html embed step to the test data.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 98.454% when pulling 32fa827 on yaronassa:master into 9ae460e on wswebcreation:master.

@wswebcreation
Copy link
Collaborator

Tnx for the PR

I'm currently not available due to traveling and vacation. When I'm back I'll check and merge it.

@wswebcreation wswebcreation self-requested a review August 17, 2018 08:02
Copy link
Collaborator

@wswebcreation wswebcreation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tnx man, this looks great!

@wswebcreation wswebcreation merged commit aa9ca64 into WasiqB:master Aug 17, 2018
yaronassa added a commit to yaronassa/multiple-cucumber-html-reporter that referenced this pull request Sep 26, 2018
Update template condition to not suppress output for hidden steps w/ html embed
@yaronassa
Copy link
Contributor Author

@wswebcreation Hey, just noticed a bug that didn't output html embeds for hidden steps (I missed a condition in the template when adding my original changes).
Added the fix now.

@wswebcreation
Copy link
Collaborator

@yaronassa

Can you push that fix and create a PR for it?

@yaronassa
Copy link
Contributor Author

Yeah, sure, don't know why I pushed it here.
My bad

@wswebcreation
Copy link
Collaborator

No problem, will check it out later. Tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants