mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 22:34:37 +08:00
FIX: Flaky tests
We had acceptance tests that were testing the contents of the post stream preview, not the contents of the eventual topic itself. This became apparent when I introduced a new promise which caused the tests to finish waiting for work properly. Before that, it was up to the speed of the execution, very spooky!
This commit is contained in:
@ -249,7 +249,7 @@ QUnit.test("Create a Reply", async assert => {
|
||||
await click("#reply-control button.create");
|
||||
assert.equal(
|
||||
find(".cooked:last p").text(),
|
||||
"this is the content of my reply"
|
||||
"If you use gettext format you could leverage Launchpad 13 translations and the community behind it."
|
||||
);
|
||||
});
|
||||
|
||||
@ -266,7 +266,7 @@ QUnit.test("Posting on a different topic", async assert => {
|
||||
await click(".btn-reply-here");
|
||||
assert.equal(
|
||||
find(".cooked:last p").text(),
|
||||
"this is the content for a different topic"
|
||||
"If you use gettext format you could leverage Launchpad 13 translations and the community behind it."
|
||||
);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user