I desired to learn about Cypress.io so that I'll know for myself if it's worth recommending. So far I like it!
Stated with dotnet new mvc in .Net Core 3.0 and trying out Cypress.io
Quick start https://docs.cypress.io/guides/getting-started/installing-cypress.html#System-requirements https://docs.cypress.io/guides/references/best-practices.html#article
npm install cypress --save-dev
npx cypress open
"It is impossible for Cypress to miss elements when it fires events." From https://docs.cypress.io/guides/overview/key-differences.html#Flake-resistant https://github.com/cypress-io/cypress-example-recipes/
NDC 2019 workshop on Pluralsight
• Easy to get going without experience
• Newer and cooler
• Great Docs
• Chrome only
• JavaScript (that could be a pro now)
• Some might have Selenium experience
• Problems with Oauth
○ https://blog.johnnyreilly.com/2?018/07/cypress-and-auth0.html
https://www.cypress.io/blog/2019/01/03/stop-using-page-objects-and-start-using-app-actions/#
- More tied to the Cypress framework with custom actions, but it's 50% faster!
npx cypress run
will record videos. See Organization below for more info.
https://docs.cypress.io/guides/references/best-practices.html#Setting-a-global-baseUrl
put inside of cypresss.json
Cypress.env('usename')
Cypress.env('password')
- files: name them well example: Registering the User.js
https://docs.cypress.io/guides/guides/continuous-integration.html#Examples
Look into more: https://docs.cypress.io/guides/tooling/plugins-guide.html#Use-Cases
I created a personal org, then it says to run npx cypress run --record --key 32f80306-92eb-4c6a-b3b7-403329eb4442
and the recorded sessions will show up in my dashboard.
They also show up in the "Runs" tab of the runner. In the website, there is even a recorded video!
Here's more about the Dashboard Service
- https://dev.to/noriste/front-end-productivity-boost-cypress-as-your-main-development-browser-5cdk
- https://dvinnik.com/talks/testing/modern-web-testing-going-beyond-selenium/
- https://blog.logrocket.com/cypress-io-the-selenium-killer/
- https://rhythmandbinary.com/2019/06/09/how-cypress-makes-testing-fun/
- https://hackernoon.com/cypress-will-change-the-way-you-develop-47a194d2a33f
- SSO - best practice