Test your sitemap using Cypress

added by JavaScript Kicks
11/12/2021 2:39:00 PM

1110 Views

How to load and parse sitemap XML resource and then confirm each page loads using the Cypress.io test runner. Sometimes people ask me how to verify their sitemap.xml files using Cypress tests. While Cypress test runner is not meant for crawling website, it is pretty capable of quickly checking your pages against silly "404: page not found" errors after the deployment.


0 comments