title: Protractor and Cucumber: function timed out using async/await
body: <p>I'm doing e2e and bdd tests using Angular 5, Protractor and Cucumber. When I run on terminal <code>ng e2e</code> I get the following error:</p>
  
  <blockquote>
    <p>When I open the page # e2e\steps\home.steps.ts:15</p>
    
    <p>Error: function timed out, ensure the promise resolves within 5000
    milliseconds</p>
  </blockquote>
  
  <p>In the line 15, I have:</p>
  
  <pre><code> When(/^I open the page$/, async () =&gt; {
      await browser.get('http://localhost:49156');
   });
  </code></pre>
  
  <p>Specifically, it is the line:</p>
  
  <pre><code> When(/^I open the page$/, async () =&gt; {
  </code></pre>