I am getting a API response as an image, currently i need 2 things.
On postman i am validating the response in Tests as below .
pm.test("Content-Type is present", function () { pm.response.to.have.header("Content-Type","image/png"); });
I want to know how the header response be validated in Cypress code after i have the response.
- In postman i can see the response body having a image, but when i run in Cypress all i see the validation like status code,so is there a way that the image can be rendered in browser ? and more validations can be done ?