Skip to content

Commit

Permalink
silence test noise
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin committed Jul 23, 2020
1 parent e1f4a9b commit 2e47fca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/elementhandle.spec.ts
Expand Up @@ -15,6 +15,7 @@
*/

import expect from 'expect';
import sinon from 'sinon';
import {
getTestState,
setupTestBrowserHooks,
Expand Down Expand Up @@ -388,7 +389,10 @@ describe('ElementHandle specs', function () {

expect(element).toBeDefined();
});

it('should wait correctly with waitFor', async () => {
/* page.waitFor is deprecated so we silence the warning to avoid test noise */
sinon.stub(console, 'warn').callsFake(() => {});
const { page, puppeteer } = getTestState();
puppeteer.__experimental_registerCustomQueryHandler('getByClass', {
queryOne: (element, selector) => element.querySelector(`.${selector}`),
Expand Down

0 comments on commit 2e47fca

Please sign in to comment.