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