mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: Add more wait between edit so we don't end up replying too quickly.
This commit is contained in:
parent
e47ca6633b
commit
5b55252e10
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ const path = require("path");
|
||||||
|
|
||||||
const takeFailureScreenshot = function() {
|
const takeFailureScreenshot = function() {
|
||||||
const screenshotPath = `${process.env.SMOKE_TEST_SCREENSHOT_PATH ||
|
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}`);
|
console.log(`Screenshot of failure taken at ${screenshotPath}`);
|
||||||
return page.screenshot({ path: screenshotPath, fullPage: true });
|
return page.screenshot({ path: screenshotPath, fullPage: true });
|
||||||
};
|
};
|
||||||
|
@ -286,7 +286,7 @@ const path = require("path");
|
||||||
visible: true
|
visible: true
|
||||||
});
|
});
|
||||||
|
|
||||||
promise = promise.then(() => page.waitFor(1000));
|
promise = promise.then(() => page.waitFor(2000));
|
||||||
|
|
||||||
promise = promise.then(() => {
|
promise = promise.then(() => {
|
||||||
const post = `I edited this post`;
|
const post = `I edited this post`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue