mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:01:13 +08:00
Fix unhandled promise in smoke test.
This commit is contained in:
@ -53,7 +53,9 @@ const path = require('path');
|
|||||||
|
|
||||||
page.on('console', msg => console.log(`PAGE LOG: ${msg.text}`));
|
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", () => {
|
await exec("expect a log in button in the header", () => {
|
||||||
return page.waitForSelector("header .login-button", { visible: true });
|
return page.waitForSelector("header .login-button", { visible: true });
|
||||||
|
Reference in New Issue
Block a user