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

Inspect: New method to preview a snapshot of rendered HTML in browser #10

Merged
merged 17 commits into from May 15, 2019

Conversation

ItsJonQ
Copy link
Contributor

@ItsJonQ ItsJonQ commented May 9, 2019

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().

@ItsJonQ ItsJonQ added the enhancement New feature or request label May 9, 2019
@ItsJonQ ItsJonQ requested a review from knicklabs May 9, 2019 17:26
@ItsJonQ ItsJonQ self-assigned this May 9, 2019
@ItsJonQ ItsJonQ merged commit 5bdb97d into master May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants