Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Snapshots cutoff top level sibling elements #23

Open
stuartlong opened this issue Apr 9, 2019 · 1 comment
Open

Snapshots cutoff top level sibling elements #23

stuartlong opened this issue Apr 9, 2019 · 1 comment

Comments

@stuartlong
Copy link
Contributor

If I try to snapshot a group of sibling elements, only the first element is actually snapshotted. Take the following dom:

<div id="1">
  <p>some</p>
  <p>random</p>
  <p>markup</p>
</div>

and then snapshot the children of the div:

cy
  .get("#1")
  .children()
  .snapshot();

then outputted snapshot only snapshots the first child:

"1": "<p>some</p>"
  • version - 2.0.1
  • platform - Windows
  • snapshot should fully snapshot the passed DOM
  • snapshot is only snapshotting the first element in a passed array
@mastrzyz
Copy link

mastrzyz commented Jan 6, 2021

+1

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

No branches or pull requests

2 participants