A platform for community discussion. Free, open, simple.
Fix unhandled promise in smoke test.
Guo Xiang Tan8f6e2b718666
diff --git a/test/smoke_test.js b/test/smoke_test.jsindex 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 });