mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Fix the smoke test
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user