Skip to content

How can I watch the report in Gmail? #25

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

Closed
YuvalAdler opened this issue Jan 4, 2016 · 2 comments
Closed

How can I watch the report in Gmail? #25

YuvalAdler opened this issue Jan 4, 2016 · 2 comments

Comments

@YuvalAdler
Copy link

Hi,
I managed to send the html result (say report.html) through mail, but Gmail shows the mail without all the coloring, tables etc.
Any idea?
Here's out it looks on Chrome (great) and Gmail (not so great). I guess I miss something in my e-mail header:
To: [email protected]
From: [email protected]
Content-Type: text/html; charset=UTF-8
Subject: kuka

...

Thanks!
Yuval.

Chrome:

chrome

Gmail:

gmail

@davehunt
Copy link
Collaborator

davehunt commented Jan 4, 2016

This could be a security feature of Gmail, not allowing inline CSS, JavaScript, or images from being displayed. It's not clear to me if you're sending an e-mail with the content of the report, or if the report is an attachment. Either way, I suspect the issue is with Gmail and not something I can fix in the plugin. If it turns out I'm wrong, please reopen this issue with details.

@davehunt davehunt closed this as completed Jan 4, 2016
@tomer
Copy link
Contributor

tomer commented Sep 4, 2017

For the record, --self-contained-html should do the trick, but some content is blocked by Gmail, such as JavaScript code required for column-sorting and filtering, and they also cropping long HTML messages. Publishing the report as an email attachment also not perfect, as Gmail does filtering the HTML code for preview, so it is required to download the report from the email message and open it locally from the download folder.

drRedflint added a commit to drRedflint/pytest-html that referenced this issue Nov 13, 2022
* Add query params
BeyondEvil added a commit that referenced this issue Mar 5, 2023
* fix main.js conflicts

* fix js test

* fix resource (main.js) test

* revert change to report extra

* filters style

* css and dom brush up

* Buildable app

* always store data in html

* Always store data blob in file

* json dump test data

* read data from dom element

* manually initialize state

* minimalistic dataset

* simplify included files

* Handle report extras

* Handle python report hooks

* imgviewer

* present name in image viewer and open img on click

* setup linter for project

* conform to styles

* show video in imageviewer (#14)

* show video in imageviewer

* Chore: Pluralize extra (#15)

* Add extras.HTML

* Move outcome handling to backend (#18)

* Move outcome handling to backend

* Pass in text version of longrepr if present

* make collapse/expand all functional (#20)

* make collapse/expand all functional

* only create links for text, url and json (#22)

* make filter search case insensitive (#21)

* make filter search case insensitive

* use sessionStorage to prevent preferences to be reapplied on new reports

* avoid multiple event bindings + fix filter bug

* Collapse individual row

Co-authored-by: Jim Brännlund <[email protected]>

* add no log output captured string

* Query params (#25)

* Add query params

* adjust tests (#26)

* Duration format (#27)

* adjust tests

* build format handler

* remove dependency

---------

Co-authored-by: Jim Brännlund <[email protected]>

* Beyondevil/cleanup (#28)

* chore: Cleanup branch before merge

* chore: Fix duration and CI

* Fix pre-commit issues

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Viktor Gustafsson <[email protected]>
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

No branches or pull requests

3 participants