cypress-io / full-network-proxy

Demo repo for Cypress with full network stubbing support
https://github.com/cypress-io/cypress/pull/1931
5 stars 1 forks source link

Spying on a resource that returns 404 not working #1

Open bahmutov opened 6 years ago

bahmutov commented 6 years ago
it.only("detects if the script has not been loaded", () => {
    cy.route("/not-found.js").as("not-found")
    cy.visit("missing-resource.html")
})

returns now 200

screen shot 2018-04-10 at 4 43 55 pm