From 8f6e2b718666821e272cf5b1e82b01cfc656b418 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 21 Dec 2017 10:32:14 +0800 Subject: [PATCH] Fix unhandled promise in smoke test. --- test/smoke_test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/smoke_test.js b/test/smoke_test.js index b4c3af8c89f..4c1e151a0cd 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -53,7 +53,9 @@ const path = require('path'); page.on('console', msg => console.log(`PAGE LOG: ${msg.text}`)); - await page.goto(url); + await exec("go to site", () => { + return page.goto(url); + }); await exec("expect a log in button in the header", () => { return page.waitForSelector("header .login-button", { visible: true });