mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Rename all test files from JS -> ES6
This commit is contained in:
39
test/javascripts/acceptance/personal-message-test.js
Normal file
39
test/javascripts/acceptance/personal-message-test.js
Normal file
@ -0,0 +1,39 @@
|
||||
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")
|
||||
);
|
||||
});
|
||||
|
||||
acceptance("Personal Message Tagging", {
|
||||
loggedIn: true,
|
||||
site: { can_tag_pms: true }
|
||||
});
|
||||
|
||||
QUnit.test("show footer edit button", async assert => {
|
||||
await visit("/t/pm-for-testing/12");
|
||||
|
||||
assert.ok(
|
||||
exists(".edit-message"),
|
||||
"shows edit first post button on footer when PM tagging is enabled"
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user