2020-05-14 22:04:08 +08:00
|
|
|
import I18n from "I18n";
|
2018-02-27 18:14:34 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Personal Message", {
|
|
|
|
loggedIn: true,
|
|
|
|
});
|
|
|
|
|
2018-07-19 22:40:12 +08:00
|
|
|
QUnit.test("footer edit button", async (assert) => {
|
|
|
|
await visit("/t/pm-for-testing/12");
|
2018-02-27 18:14:34 +08:00
|
|
|
|
2018-07-19 22:40:12 +08:00
|
|
|
assert.ok(
|
|
|
|
!exists(".edit-message"),
|
|
|
|
"does not show edit first post button on footer by default"
|
|
|
|
);
|
2018-02-27 18:14:34 +08:00
|
|
|
});
|
|
|
|
|
2020-02-21 19:35:49 +08:00
|
|
|
QUnit.test("suggested messages", async (assert) => {
|
|
|
|
await visit("/t/pm-for-testing/12");
|
|
|
|
|
|
|
|
assert.equal(
|
|
|
|
find("#suggested-topics .suggested-topics-title").text().trim(),
|
|
|
|
I18n.t("suggested_topics.pm_title")
|
|
|
|
);
|
|
|
|
});
|