'Validate CSS 'backgroud-image' URL using Cypress
I am trying to validate if the CSS 'backgroud-image' URL has status code '200'. Is it possible to validate loading of images using Cypress. Can anyone please suggest?
it('Validate the images displayed',() => {
cy.get('.logo').each(($el,index,$list) => {
expect($el).to.have.css('background-image','*should pass dynamic url image*')
})
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
