I am using [login to view URL] tool and i want to be able to search images on a page and verify all .svg, .png and .jpg and then i can determine if that information is correct. here is what i have so far:
/// <reference types="Cypress" />
describe('SVG tests', function () {
it('Verifies images are SVG', function () {
// Arrange - setup initial app state
[login to view URL]('/')
[login to view URL]('img').debug()
.then(function(image) {
[login to view URL](image).invoke('attr','src').should('contain','.svg')
})
})
})