DEV: Fix the smoke test

This commit is contained in:
Gerhard Schlager
2019-05-21 19:01:29 +02:00
parent 338b927f95
commit e8de30939d
3 changed files with 37 additions and 14 deletions

View File

@ -29,7 +29,7 @@ const path = require("path");
const takeFailureScreenshot = function() {
const screenshotPath = `${process.env.SMOKE_TEST_SCREENSHOT_PATH ||
"tmp/smoke-test-screenshots"}/smoke-test-${Date.now()}.png`;
"tmp/smoke-test-screenshots"}/smoke-test-${Date.now()}.png`;
console.log(`Screenshot of failure taken at ${screenshotPath}`);
return page.screenshot({ path: screenshotPath, fullPage: true });
};
@ -219,6 +219,8 @@ const path = require("path");
return promise;
});
await page.waitFor(1000);
await exec("submit the topic", () => {
return page.click(".submit-panel .create");
});
@ -249,6 +251,8 @@ const path = require("path");
);
});
await page.waitFor(5000);
await exec("submit the topic", () => {
return page.click("#reply-control .create");
});