From 7dc58d62e4065a772e28f1d676fd0ad381ad4037 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 9 May 2019 14:02:45 +0800 Subject: [PATCH] DEV: Clear topic title input each smoke test. There may be pre-filled topic title as a result of a draft. --- test/smoke_test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/smoke_test.js b/test/smoke_test.js index 9767f872bc2..57563326247 100644 --- a/test/smoke_test.js +++ b/test/smoke_test.js @@ -181,6 +181,10 @@ const path = require("path"); ); }); + await page.evaluate(() => { + document.getElementById("reply-title").value = ""; + }); + await exec("compose new topic", () => { const date = `(${+new Date()})`; const title = `This is a new topic ${date}`;