Discover more from Cypress Testing Tips & Tricks
Cypress Tips August 2023
How component testing was born, table pagination challenge, upcoming talks
Component Testing
I have described the early history of Cypress component testing by looking up code commits, read all about it in my blog post How Cypress Component Testing Was Born. There is a plot twist at the end.
While you are on my blog, check out Shrink The Time Gap - I try to “catch” any additional unexpected popups that might appear between the two application good states.
Cypress Pagination Challenge
Let’s have some fun 😁 I have created repo https://github.com/bahmutov/cypress-pagination-challenge with a Cypress spec testing the paginated data table. The problem is that we want to get to the last page by clicking the “Next” button.
Can you implement this test? Clone / fork the repo and see if you can make the test green. You can use plain Cypress syntax or bring any of Cypress plugins - but you cannot simply click on the “Last” button.
I will start posting my solutions as private lessons in my Cypress Plugins course. After 2 days, I will make each lesson public and will also post the video on my YouTube channel.
🎁 I have some pretty sweet solutions to show, you do not want to miss them.
September Talks
September 10th, I will speak virtually at International Tester's Day in Georgia. My topic will be showing cross-site scripting testing using the new Cypress CSP feature.
Then at the end of September, I am coming to New York City for iJS. I will teach a Cypress workshop on Sept 25th and will talk about Cypress and Playwright on Sept 27th. I will also talk about my fav CI system: GitHub Actions at DevOpsCon on Sept 2th.
Cypress-if plugin and Cypress v12
Good people have fixed my cypress-if plugin and made it work with Cypress v12. Finally, the power of open source came through.
Played At Gillette Stadium
This summer I had the pleasure of coaching U12 team and we had our tournament on Saturday at Gillette Stadium (65k arena that is home to New England Revolution and Patriots). While we did not do as well as I would like, we did score a lot of goals and had a lot of fun on the pitch.
Got to have some interests outside JavaScript and testing, you know?
Subscribe to Cypress Testing Tips & Tricks
Tips and tricks about testing all the web things using Cypress.io