DEV: Add smoke test to github actions (#8580)

This commit is contained in:
David Taylor
2020-01-07 12:54:01 +00:00
committed by GitHub
parent c8d438cc63
commit 38b4e3b5a7
3 changed files with 67 additions and 3 deletions

View File

@ -126,7 +126,7 @@ const path = require("path");
});
await exec("expect a log in button in the header", () => {
return page.waitForSelector("header .login-button", { visible: true });
return page.waitForSelector("header .login-button");
});
if (process.env.LOGIN_AT_BEGINNING) {
@ -171,7 +171,9 @@ const path = require("path");
}
await exec("go home", () => {
let promise = page.waitForSelector("#site-logo, #site-text-logo", { visible: true });
let promise = page.waitForSelector("#site-logo, #site-text-logo", {
visible: true
});
promise = promise.then(() => {
return page.click("#site-logo, #site-text-logo");