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

feat: Cypress Studio - record test steps through interacting with your site #9542

Merged
merged 94 commits into from
Jan 19, 2021

Conversation

panzarino
Copy link
Contributor

@panzarino panzarino commented Dec 7, 2020

User facing changelog

Cypress Studio - record test steps through interacting with your site

Additional details

Users are able to add additional commands to their existing tests by clicking the new studio button. When clicked, that test will rerun and stop at its ending state. From here, users are able to interact with their site and have Cypress commands auto generated from their actions.

In addition to extending currently existing tests, users are also able to add a test to existing suites. In this case, the before and beforeEach hooks will run before tracking interactions.

Currently supported commands

  • cy.click()
  • cy.type()
  • cy.select()
  • cy.check()
  • cy.uncheck()
  • cy.visit()

Documentation - cypress-io/cypress-documentation#3394

Extending a Test

ezgif-3-73aa4f99e095

Creating a New Test

ezgif-3-a81b254d5324

PR Tasks

  • Have tests been added/updated?
  • Has the original issue or this PR been tagged with a release in ZenHub?
  • Has a PR for user-facing changes been opened in cypress-documentation?
  • Have API changes been updated in the type definitions?
  • Have new configuration options been added to the cypress.schema.json?

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Dec 7, 2020

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Dec 7, 2020



Test summary

9263 0 118 3Flakiness 1


Run details

Project cypress
Status Passed
Commit d19a0f2
Started Jan 19, 2021 3:00 PM
Ended Jan 19, 2021 3:15 PM
Duration 14:57 💡
OS Linux Debian - 10.5
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@panzarino panzarino marked this pull request as ready for review January 15, 2021 11:07
Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks good to me.

Some change in the CSS related to the padding on the right is causing the percy snapshot failures though, so that will have to be fixed.

@panzarino
Copy link
Contributor Author

@chrisbreiding I've fixed all the failing Percy snapshots - there's still one that's failing but that's intentional since I added a min-height to commands to prevent the occasional jittery effect that used to happen on hover

@chrisbreiding chrisbreiding merged commit f4b0139 into develop Jan 19, 2021
pashidlos pushed a commit to pashidlos/cypress that referenced this pull request Jan 30, 2021
…r site (cypress-io#9542)

Co-authored-by: Chris Breiding <chrisbreiding@users.noreply.github.com>
@chrisbreiding chrisbreiding deleted the test-recorder branch April 5, 2022 18:28
@lmiller1990 lmiller1990 mentioned this pull request Aug 8, 2022
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console output with suggested test from selector (record/wizard mode)
2 participants