DEV: Clear topic title input each smoke test.

There may be pre-filled topic title as a result of a draft.
This commit is contained in:
Guo Xiang Tan 2019-05-09 14:02:45 +08:00
parent 427979e7e5
commit 7dc58d62e4
1 changed files with 4 additions and 0 deletions

View File

@ -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}`;