2018-02-27 05:14:34 -05:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Personal Message", {
|
|
|
|
loggedIn: true
|
|
|
|
});
|
|
|
|
|
2018-07-19 10:40:12 -04:00
|
|
|
QUnit.test("footer edit button", async assert => {
|
|
|
|
await visit("/t/pm-for-testing/12");
|
2018-02-27 05:14:34 -05:00
|
|
|
|
2018-07-19 10:40:12 -04:00
|
|
|
assert.ok(
|
|
|
|
!exists(".edit-message"),
|
|
|
|
"does not show edit first post button on footer by default"
|
|
|
|
);
|
2018-02-27 05:14:34 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
acceptance("Personal Message Tagging", {
|
|
|
|
loggedIn: true,
|
|
|
|
site: { can_tag_pms: true }
|
|
|
|
});
|
|
|
|
|
2018-07-19 10:40:12 -04:00
|
|
|
QUnit.test("show footer edit button", async assert => {
|
|
|
|
await visit("/t/pm-for-testing/12");
|
2018-02-27 05:14:34 -05:00
|
|
|
|
2018-07-19 10:40:12 -04:00
|
|
|
assert.ok(
|
|
|
|
exists(".edit-message"),
|
|
|
|
"shows edit first post button on footer when PM tagging is enabled"
|
|
|
|
);
|
2018-02-27 05:14:34 -05:00
|
|
|
});
|