Files
discourse/app/assets/javascripts/discourse/tests/acceptance/personal-message-test.js
Robin Ward 23f24bfb51 REFACTOR: Move javascript tests inside discourse app
This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
2020-10-02 11:29:36 -04:00

25 lines
587 B
JavaScript

import I18n from "I18n";
import { acceptance } from "discourse/tests/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")
);
});