From 5b55252e10452be5cfa1bff4cbdf3b495bb62f85 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 13 Jun 2019 09:14:17 +0800 Subject: [PATCH] DEV: Add more wait between edit so we don't end up replying too quickly. --- test/smoke_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/smoke_test.js b/test/smoke_test.js index 27bb85b6706..fda2b89e5fb 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -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 }); }; @@ -286,7 +286,7 @@ const path = require("path"); visible: true }); - promise = promise.then(() => page.waitFor(1000)); + promise = promise.then(() => page.waitFor(2000)); promise = promise.then(() => { const post = `I edited this post`;