FIX: topic title in search contains data-topic-id (#9435)

Data topic id is required by the discourse-encrypt plugin.

Related to https://github.com/discourse/discourse-encrypt/pull/12
This commit is contained in:
Krzysztof Kotlarek
2020-04-17 09:35:26 +10:00
committed by GitHub
parent e8e764c064
commit 5a60a4233e
2 changed files with 9 additions and 1 deletions
@@ -28,6 +28,10 @@ QUnit.test("search", async assert => {
await fillIn("#search-term", "dev");
await keyEvent("#search-term", "keyup", 16);
assert.ok(exists(".search-menu .results ul li"), "it shows results");
assert.ok(
exists(".search-menu .results ul li .topic-title[data-topic-id]"),
"topic has data-topic-id"
);
await click(".show-help");