question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing parts of documentation for Cypress.log - end, finish, get, st, snapshot

See original GitHub issue

I’m submitting a…

[ ] Bug report
[X] Content update
[ ] Process update (build, deployment, ... )

Type of bug / changes

https://docs.cypress.io/api/cypress-api/cypress-log.html#Syntax cypressLog

There is no information what are these methods for and how to use them. In case you don’t wan to update documentation, could you explain here what are these for?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jennifer-shehanecommented, Jun 2, 2021

The best documentation currently for Cypress.log can be found in this great blog post: https://filiphric.com/improve-your-custom-command-logs-in-cypress Everything in there is accurate.

1reaction
shwarcucommented, May 27, 2021

@fzyzcjy from experiments we have made it looks like this snapshot function is responsible for taking DOM snapshots for the Cypress runner, but I don’t know yet how to use it 😉

Edit: from the example above I can guess that you can take 2 snapshots “before” and “after” and they will be displayed for your custom log when you click on it, just like you would click on a cy.click() command

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction | Cypress Documentation
What you'll learn An overview of Continuous Integration How to run Cypress tests in Continuous Integration How to configure Cypress in various CI....
Read more >
screenshot - Cypress Documentation
Screenshots in CI​​ You can see screenshots taken during a CI run in Cypress Cloud without any extra work. Alternatively, to see screenshots...
Read more >
Screenshots and Videos - Cypress Documentation
Cypress comes with the ability to take screenshots, whether you are running via cypress open or cypress run , even in CI. To...
Read more >
End-to-End Snapshot Testing - Cypress
This blog post shows how the Cypress Test Runner can bring the same power to your end-to-end tests. Experimental feature. This document shows...
Read more >
Cypress Tips and Tricks - Gleb Bahmutov
A few tips on getting the most out of E2E testing tool Cypress ... Find good Cypress examples; Use cy.log to print to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found