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

Serenity summary file alignment is not correct #2109

Closed
ahuja-ankur opened this issue May 28, 2020 · 34 comments
Closed

Serenity summary file alignment is not correct #2109

ahuja-ankur opened this issue May 28, 2020 · 34 comments

Comments

@ahuja-ankur
Copy link

ahuja-ankur commented May 28, 2020

Hi,

When I used Email-ext plugin to send the serenity-summary.html to my gmail box. It is distorted. The same project is https://github.com/ahuja-ankur/sample-Proj.git

Please help.

image

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

Does it work when you display the report locally?

@ahuja-ankur
Copy link
Author

ahuja-ankur commented May 28, 2020

yes, when I open the file in browser normally, it works fine. See below -
image

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

Have you tried sending the original report as an html document to your gmail client?

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

HTML rendering is notoriously unreliable in email clients, so it could be an issue with the rendering (which will be hard to fix, as fixing the rendering for one client will break it for another, or may not be possible at all).

@ahuja-ankur
Copy link
Author

Have you tried sending the original report as an html document to your gmail client?

I am sending as HTML only.

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

The other possibility is that the email-ext plugin modifies the html (that would seem unlikely but worth checking)

@ahuja-ankur
Copy link
Author

HTML rendering is notoriously unreliable in email clients, so it could be an issue with the rendering (which will be hard to fix, as fixing the rendering for one client will break it for another, or may not be possible at all).

It is working fine for old versions of serenity.

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

If you can figure out a modification of the HTML that would render correctly, I can have a look at the template to see if it is possible.

@globalworming
Copy link
Collaborator

if you could precisely state the version where it breaks, we could check the commits for what may be the culprit

@ahuja-ankur
Copy link
Author

If you can figure out a modification of the HTML that would render correctly, I can have a look at the template to see if it is possible.

I can say it is working fine for serenity-emailer version 1.9.45 but not for 2.2.5... Probably this could help you in comparing.

@ahuja-ankur
Copy link
Author

if you could precisely state the version where it breaks, we could check the commits for what may be the culprit

Working fine in 1.9.45 but not in 2.2.5

@globalworming
Copy link
Collaborator

that's not very precise :)

@ahuja-ankur
Copy link
Author

that's not very precise :)

After 1.9.45, I checked at 2.0.40. There also it is broken... I am not able to go below this version because then I have to lower down all my dependencies

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

If you can identify an exact version change we can see what has changed.

@ahuja-ankur
Copy link
Author

If you can identify an exact version change we can see what has changed.

Would it be possible for you to compare the two versions I provided, because ultimately the fix would be on top of latest version.

@ahuja-ankur
Copy link
Author

for serenity-single-page-report, it is issue from first version for me... earlier I was using serenity-emailer 1.9.45

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

It’s just the artifact name that changed, the code should be similar. See if you can isolate the exact change

@ahuja-ankur
Copy link
Author

ok, let me try quickly

@ahuja-ankur
Copy link
Author

ahuja-ankur commented May 28, 2020

It’s just the artifact name that changed, the code should be similar. See if you can isolate the exact change

It is exact 2.0.4 and 2.0.5 version where the format has changed. I hope it helps.

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

There are about 50 releases between 1.9.45 and 2.0.0

@ahuja-ankur
Copy link
Author

that's not very precise :)

It is exact 2.0.4 and 2.0.5 version where the format has changed. I hope it helps.

@ahuja-ankur
Copy link
Author

There are about 50 releases between 1.9.45 and 2.0.0

It is exact 2.0.4 and 2.0.5 version where the format has changed. I hope it helps.

@wakaleo
Copy link
Member

wakaleo commented May 28, 2020

That does help. I don’t know when I will be able to look at it, though - if you can look at the differences in GitHub and propose a PR it will be quicker

@ahuja-ankur
Copy link
Author

That does help. I don’t know when I will be able to look at it, though - if you can look at the differences in GitHub and propose a PR it will be quicker

can you please help in confirming exactly where to look at. I am new to this.

@globalworming
Copy link
Collaborator

with you IDE it should be easy to check out a the branches tagged v2.0.4 and v2.0.5 and compare them (at least my IntelliJ does this pretty good). changes in the emailable html report are most important i guess

@ahuja-ankur
Copy link
Author

I tried to push my branch to create pull request but it is giving me permission denied...
Please help..

@wakaleo
Copy link
Member

wakaleo commented May 29, 2020

You’ll need to raise a Pull Request

@ahuja-ankur
Copy link
Author

ahuja-ankur commented May 29, 2020

You’ll need to raise a Pull Request

how, when I cannot push my branch. I created the branch locally but when pushing it is giving me error -
image

@wakaleo
Copy link
Member

wakaleo commented May 29, 2020

See https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests

You need to fork the repository, make and test your change locally, then propose a Pull Request against the main repo

@ahuja-ankur
Copy link
Author

Raised PR #2112. Please take a look.

@ahuja-ankur
Copy link
Author

@wakaleo Thanks for merging the PR, it looks like it will be part of 2.2.9, so when 2..29 is expected to be rolled out? because I would like to get this soon.

@ahuja-ankur
Copy link
Author

Raised PR #2113 for minor modifications. Please merge.

@ahuja-ankur ahuja-ankur changed the title Serenity-summary.html alignment is distorted in gmail when sent using Jenkins Email-ext plugin Serenity summary file alignment is not correct May 29, 2020
@wakaleo
Copy link
Member

wakaleo commented May 30, 2020

There will be a new release early next week.

@ahuja-ankur
Copy link
Author

Issue not occurring in 2.2.9. Fix is good. Closing this thread.

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

No branches or pull requests

3 participants