discourse/test/javascripts/acceptance/personal-message-test.js
Sam Saffron ecc8e559ec
UX: remove edit PM button
Edit PM button leads to confusion and is uneeded
2020-05-28 15:15:27 +10:00

27 lines
580 B
JavaScript

import I18n from "I18n";
import { acceptance } from "helpers/qunit-helpers";
acceptance("Personal Message", {
loggedIn: true
});
QUnit.test("footer edit button", async assert => {
await visit("/t/pm-for-testing/12");
assert.ok(
!exists(".edit-message"),
"does not show edit first post button on footer by default"
);
});
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")
);
});