Cypress Testing Tips & Tricks

Share this post

Cypress Tips May 2022 News

cypresstips.substack.com

Cypress Tips May 2022 News

Test multiple domains, QR codes, and other Cypress news

Gleb Bahmutov
May 11, 2022
2
Share this post

Cypress Tips May 2022 News

cypresstips.substack.com

Multiple Domain Support Released in v9.6.0

Finally 🎉.

Check out the new experimental command cy.origin added in Cypress v9.6.0 that makes visiting multiple domains in a single test possible. I have already used the new command to authenticate with 3rd party provider in my tests for “Cypress.tips courses” website. I even recorded a video where I show it in action. The video includes a surprise: if you combine `cy.origin` and `cy.session` commands you can instantly log in from every test 🤯 Watch the video below, I bet you will get as excited about it as I was!

A pretty big step forward for Cypress test runner 🚀

Testing QR Codes

I was really impressed with this blog post QR Code/Barcode Testing with Cypress - a really nice way to decode a QR image right in the browser to check the URL it encodes.

QR Code/Barcode Testing With Cypress

Cypress Network Testing Exercises

Last month I have released my first Cypress advanced course about using the cy.intercept command through hands-on exercises.

Cypress.tips Courses

I love seeing the new users enroll in the course, but there is a downside to authoring a course about something as powerful as Cypress. I cannot stop making new bonus lessons and adding them to the course. There are already 30 main and 18 bonus lessons, and more than 2 hours of videos… When will this stop?! But seriously, I love answering users’ questions by preparing the full test exercise as the answer.

If you are enrolled in the course, when you finish a lesson, let others know what you think about it. At the end of the lesson, you might sometimes see the “Tweet Reaction” box. Click the emoji matching your mood, edit the message, and send the tweet to your followers. They will be impressed by your learnings

The “Tweet” box under each lesson

I never take anything seriously, do I?

New blog posts and videos

Finally, since the last newsletter, I have published a few new blog posts, here is the list in case you missed an announcement:

  • Elements Visible In The Current Viewport

  • When Can The Test Click

  • Cypress Module Problem

  • Solve The First Click

  • The Rendered Font

  • Listen To The Message

  • Log in Using Collected Words

  • Send Data From The Application To The Cypress Test

  • Spy On A Complex Method Call

  • A Quick React Component Test

  • Set All Cypress Env Values Using A Single GitHub Actions Secret

  • Check More Things Before Clicking

Plus my YouTube playlist Cypress Tips & Tricks reached 300 videos!

Just added my 300th Cypress video

As always, every new blog post and video is automatically scraped into the search index that you can search from https://cypress.tips/search.

Happy testing!

Share this post

Cypress Tips May 2022 News

cypresstips.substack.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 Gleb Bahmutov
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing