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

DOM Snapshots are blank in ionic app #5776

Closed
pszalanski opened this issue Nov 22, 2019 · 3 comments
Closed

DOM Snapshots are blank in ionic app #5776

pszalanski opened this issue Nov 22, 2019 · 3 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@pszalanski
Copy link

Current behavior:

Our ionic app is tested using cypress and everything works fine so far. But if we hover over a test step in the history, the app preview is blank. Normally, it displays a snapshot of the DOM at that time.

Desired behavior:

The app view should show the rendered DOM at the hovered or pinned point in time.

Screencap of issue:

cypress

Versions

Windows 10
Cypress 3.6.1
Ionic 4.11.5
capacitor 1.3.0
Angular 8.1.2

@devinshoemaker
Copy link

I have noticed the same behavior with both Ionic Angular and Ionic React.

@jennifer-shehane
Copy link
Member

I believe this is due to Ionic using Shadow DOM, which is not fully supported in Cypress. Duplicate of #144

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label Dec 16, 2019
@jennifer-shehane
Copy link
Member

We've added experimental shadow DOM support through the experimentalShadowDomSupport configuration option.

To use it, update to Cypress 4.8.0 and pass the following to your configuration file or however you pass in configuration.

{
  "experimentalShadowDomSupport": true
}

See the Experiments for more information including how to use the new .shadow() command and includeShadowDom option.

This is still experimental, so we'd like your help working through any bugs or unexpected behavior before releasing into the main product. If you encounter any issues using the new experimental shadow DOM feature, please open a new issue, filling in the issue template and providing a reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants