title: Handling Cypress url redirect
body: <p>I have a Cypress test which clicks on an image causing a redirect to a specific url. The test then checks the url contains a specific string.</p>
  
  <p>However, clicking this image causes the tests to stop/fail with a "Whoops, there is no test to run." message when the redirect happens.</p>
  
  <p>The Cypress test is very simple:</p>
  
  <pre><code>/* global describe, it, cy */
  import loadStory from '../../../config/cypress/helpers/loadStory'
  
  const component = 'product-card'
  const productCardImage = '[data-test=component-product-card_imageContainer]'
  
  describe(`${component} component interaction tests`, () =&gt; {
    it('clicking the image should open the products page', () =&gt; {
      loadStory(component, 'Default')
      cy.get(productCardImage).should('be.visible')
      cy.get(productCardImage).click()
      cy.url().should('contain', '/product')
    })
  })
  </code></pre>
  
  <p>My tests run on <code>http://localhost:9002</code> and it seems that redirecting to <code>http://localhost:9002/product/productId</code> while the test suit is running is what causes Cypress to crash/fail and instead Cypress tries to go to <code>https://localhost:9002/__/</code></p>
  
  <p>I am wondering how I can click this image and redirect to the url without causing this crash/fail in Cypress.</p>