Closed louis-vinchon closed 4 years ago
Describe the bug
If you use toMatchSnapshot(); after a cy.get() that returned multiple elements, the final snapshot will look something like this: [{}, {}, {}]
toMatchSnapshot();
cy.get()
[{}, {}, {}]
To Reproduce Steps to reproduce the behavior:
cy.get('div').toMatchSnapshot();
div
Expected behavior An array of stringified dom elements.
Desktop (please complete the following information):
This is the same issue as #67, there's an open pull request (#79) with a fix for this.
Gud
Describe the bug
If you use
toMatchSnapshot();
after acy.get()
that returned multiple elements, the final snapshot will look something like this:[{}, {}, {}]
To Reproduce Steps to reproduce the behavior:
cy.get('div').toMatchSnapshot();
when there are mutiplediv
s in the current context.Expected behavior An array of stringified dom elements.
Desktop (please complete the following information):