title: Testing scollIntoView in Puppeteer
body: <p>How can I test scrollIntoView() property in puppeteer?
  This is what I tried:</p>
  
  <pre><code>  it("should scroll to the right comment", async function() {
      await page.goto('http://127.0.0.1:3000/page/test#1',
        { waitUntil: 'domcontentloaded' });
      await page.waitForSelector("ul.timeline-comments", { visible: true });
      await page.waitForSelector("li.timeline-comment[name='1']", { visible: true });
      const result = await page.evaluate(() =&gt; {
        document.querySelector("li.timeline-comment[name='1']").scrollIntoView();
      });
      console.log(result);
    }).timeout(0);
  
  ----
  This is the result from the console.log(result):
  ---
  undefined
      ✓ should scroll to the right comment (189ms)
  
  </code></pre>
  
  <p>and here is the part of the code I want to test:</p>
  
  <pre><code>$("li.timeline-comment[name='" + comment_id + "']")[0].scrollIntoView();
  </code></pre>