Releases: helpscout/cyan
v0.12.1
v0.12.0
Add findByCy method
This update adds a new method, findByCy
. After the initial get
or
getByCy
, this method can be used to (easily) find DOM selectors that
match a specific data-cy
query.
findByCy
Function(selector: string): Cyan instance
Get descendent DOM elements that match a specific data-cy
selector.
Parameters
selector
{string}
A selector used for descendent matching.
Example
cy.get('ul').findByCy('Item')
Resolves: #15
v0.11.3
v0.11.2
Inspect: Replace async/await with Promise
This update replaces the async/await implementation within Inspect with
regular a regular Promise implementation. The reason is to allow for
the compiled dist
files to integrate smoother into varying set ups,
by-passing any babel runtime based transformers
- Inspect: Replace async/await with Promise 7d7d6a4
v0.11.1
v0.11.0
v0.10.1
v0.10.0
Avoid this version. Issues with Babel
Reported: #11
Inspect: New method to preview a snapshot of rendered HTML in browser
This update adds a new (experimental) method to Cyan called inspect
.
It takes cy.debug()
to a whole... new... level. Rendering the (snapshot) HTML in a new browser window, along with any rendered styles.
When used with async/await
, it will actually pause your Jest test run, until you close the browser tab.
Demo in this screencast:
https://www.loom.com/share/9dadfd8641ec4801b4b70352e4ff4a3c
To use it, just add cy.inspect()
to any part of your test, just like cy.debug()
.