title: What the difference between assertion timeout and wait method
body: <p>I have a test where I want to check how many times a request was triggered. I created a logger for requests and then I trigger HTTP request immediately after HTML page loading. So, a problem with t.wait(1000) test is green, but with <code>timeout</code> option that test doesn't work and I have no idea why. Where is my mistake? Thank you.</p>
  
  <pre class="lang-js prettyprint-override"><code>const logger = RequestLogger(/http:\/\/localhost:8080/, {
    logRequestHeaders: true,
    logResponseBody: true,
    stringifyResponseBody: true,
  });
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>test("after first load loading triggers after end scrolling", async t =&gt; {
    await t.expect(logger.requests.length).eql(0, '', { timeout: 1000 });
    // await t.wait(1000);
    await t.expect(logger.requests.length).eql(1, '', { timeout: 7000 });
  });
  
  </code></pre>