Skip to content

A platform for community discussion. Free, open, simple.

DEV: avoid leaked HTTP call in test

Sam Saffron8d5cc8956d97
diff --git a/test/javascripts/acceptance/composer-test.js b/test/javascripts/acceptance/composer-test.js
index b9da96ee5e1..5af2698555e 100644
--- a/test/javascripts/acceptance/composer-test.js
+++ b/test/javascripts/acceptance/composer-test.js
@@ -841,6 +841,10 @@ QUnit.test("can reply to a private message", async assert => {
return [200, { "Content-Type": "application/json" }, {}];
});
+ // a bit messy but we need a fake here cause we issue a route transition
+ // to the new post
+ server.get("/t/34/4.json", () => server.get("/t/34.json"));
+
await visit("/t/34");
await click(".topic-post:eq(0) button.reply");
await fillIn(".d-editor-input", "this is the *content* of the reply");