title: How to pause or wait in the mocha test case -- setTimeout not working
body: <p>I built a <code>selenium-mocha</code> test case that will open google, enter some text and then click search.  But I need to perform the search 60 seconds after the search text has been entered.</p>
  
  <p><strong>Test case code snippet:</strong></p>
  
  <pre><code>var assert = require('assert'),
      test = require('selenium-webdriver/testing'),
      webdriver = require('selenium-webdriver');
  var urladd ='http://www.google.com/';
  
  function clickLink(link){
      link.click();
      return link;
  }
  
  var testSimple=function(searchContent){
      var browser = new webdriver.Builder().withCapabilities(webdriver.Capabilities.chrome()).build();
  
      test.describe('\n\nGoogle Search\n', function() {
          this.timeout(60000);
          test.it('Enter element to be searched', function(done) {
              browser.get(urladd);
              browser.findElement(webdriver.By.name('q')).sendKeys(searchContent);
              browser.getTitle().then(function(title) {
                  assert.equal(title,'Google');
              })
          });
  
          test.it('Click search button', function(done) {
              setTimeout(function(){
                  browser.findElement(webdriver.By.name('btnG')).then(clickLink).then(function(){
                      browser.getTitle().then(function(title) {
                          assert.equal(title,'selenium mocha test cases - Google Search');
                      });
                  });
              },30000);
          });
      });
  }
  
  testSimple('selenium mocha test cases');
  </code></pre>
  
  <p>I used <code>setTimeout</code> to pause for 60 seconds, but mocha just passes the test case without executing the code inside the timeout.</p>
  
  <p><strong>Console output:</strong></p>
  
  <pre><code>Google Search
  
    √ Enter element to be searched (7771ms)
    √ Click search button
  
  2 passing (8s)
  </code></pre>
  
  <p>Can anyone can suggest a better solution for this (or any other APIs that could be used for pausing the mocha test)?</p>