title: Dismissing the accept cookies dialog
body: <p>For the web app that I am automating (cloud.redhat.com/openshift), I am working in a &quot;preserve all cookies&quot; mode:</p>
  <pre><code>Cypress.Cookies.defaults({
    preserve: /.*/, // match-all regexp
  });
  </code></pre>
  <p>When I run my script - it correctly dismisses the accept cookies dialog that pops up right on the start, and proceeds to feeding in the login credentials. So far so good - but then the accept cookies dialog pops up a 2nd time :(, and this time Cypress doesn't dismiss it and gets stuck because the dialog covers the whole page.</p>
  <p>Another peculiarity is that this problem doesn't happen when I run the script from the development environment, when I use &quot;cypress open&quot;. It only happens when running the script from the command line, when I use &quot;cypress run&quot;. The problem can be recreated in development as well if I switch from Chrome to Firefox. Why is there a difference between the behaviors when using &quot;cypress open&quot; and &quot;cypress run&quot;, and when using a different browser? How can I dismiss or prevent the dialog from popping up a 2nd time? We're on Cypress 7.7, but I also tried recreating the problem in Cypress 10 and it happens there too.</p>