Using Cypress, how would I write a simple test to check that a logo image exists on a page
I figured out the solution on my own. cy.get(‘form’).find(‘img’).should(‘have.attr’, ‘src’).should(‘include’,’My-Logo’) I inspected the element and found the <img src… line was embedded within a <form>. I could do a cy.get(‘form’) and pass, but could not do a cy.get(‘img’) to pass. So then I chained them together and it passed. I am not sure why I … Read more