pytest-dev / pytest-dev/pytest-html

[pytest-html v4.1.1]"Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised when accessing the report from nexus storage

Open
#795 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
779
Forks
260
PR merge metrics
No merged PRs in 30d

Description

issue:
[pytest-html v4.1.1]"Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised when accessing the report from nexus storage

steps to reproduce:

  1. generate pytest report using pytest-html v4.1.1 with args '--html=report.html --self-contained-html'
  2. upload report.html to nexus storage
  3. access report.html from browser using http scheme
  4. "Failed to read the 'sessionStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag" DOMException raised
  5. the result details not show, only result counts

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file or test. Reproduce the failure with pytest-html v4.1.1 using --html=report.html --self-contained-html, upload report.html to Nexus, and open it over HTTP; done means the report's result details render without the sessionStorage DOMException.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.