title: Trying to open up Google Drive on Cypress, but Google Drive modal closes after a few seconds
body: <p>I am trying to create a test case in Cypress where users can upload a file from their Google Drive.  After the test clicks on Google Drive button <code>cy.get(&quot;.button-group &gt; :nth-child(2)&quot;).click()</code> the Google Drive opens up, but then closes. I check the console and I get the following error message:</p>
  <p><a href="https://i.stack.imgur.com/fiGYZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiGYZ.png" alt="enter image description here" /></a></p>
  <p>This is the code I have so far.  As I mentioned, after the click command, the Google Drive briefly opens and then closes, therefore, I can't continue.  Was wondering if anyone had any experience dealing with testing Google Drive to upload documents. The account I am running tests with is a gmail account, so I should have access to Drive.  Any help or leads are welcome.</p>
  <pre><code>  public uploadDocumentFromGoogleDrive() {
      cy.get(&quot;#NameInput&quot;).type(&quot;Test&quot;);
      cy.get(&quot;.button-group &gt; :nth-child(2)&quot;)
        .click();
    }
  </code></pre>