I'm a beginner with Cypress and JavaScript. I'm trying to improve the following assertion, I report it below.
Here:
cy.xpath('//div[@data-testid="column"]').should('have.css', 'background-image', 'url("https://assets.website.com/folder/house.jpg")');
In the test I am verifying if that div has the css background-image property with that url value, I am trying to convert this assertion in this way: verifying that the div has the css background-image property with a value that contains: “house.jpg” instead of the entire URL.
Many thanks if you can help me