From 857a4e000628e01783de329934e6b7fab338c42a Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 28 May 2018 10:58:36 +0800 Subject: [PATCH] FIX: Viewport in smoke test configured incorrectly. --- test/smoke_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/smoke_test.js b/test/smoke_test.js index 7690db34219..a5eb288016c 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -20,10 +20,10 @@ const path = require('path'); }); const page = await browser.newPage(); - page.setViewport = { + await page.setViewport({ width: 1366, height: 768 - }; + }); const exec = (description, fn, assertion) => { const start = +new Date();