Test Automation Stack

Cypress provides ability to chain assertion using and() method if we need to assert more than one condition.

Let’s take an example where we have image tag, and we need to validate the tag has attribute called src and its value.

So we can write code like below

Leave a comment

I’m Gurudatt

Profile Pic

With over 12 years of quality assurance experience, i have used various test automation tools and testing concepts and helped organization and teams to speed up testing process effectively. I’m also a Cypress.io Ambassador and BrowserStack Champion.

Let’s connect

Discover more from Test Automation Stack

Subscribe now to keep reading and get access to the full archive.

Continue reading