fix the build
This commit is contained in:
parent
4010d8d9f9
commit
ec8cc833c6
|
@ -0,0 +1,28 @@
|
|||
import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("Personal Message", {
|
||||
loggedIn: true
|
||||
});
|
||||
|
||||
QUnit.test("footer edit button", assert => {
|
||||
visit("/t/pm-for-testing/12");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists('.edit-message'), 'does not show edit first post button on footer by default');
|
||||
});
|
||||
});
|
||||
|
||||
acceptance("Personal Message Tagging", {
|
||||
loggedIn: true,
|
||||
site: { can_tag_pms: true }
|
||||
});
|
||||
|
||||
QUnit.test("show footer edit button", assert => {
|
||||
visit("/t/pm-for-testing/12");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists('.edit-message'), 'shows edit first post button on footer when PM tagging is enabled');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -173,14 +173,6 @@ QUnit.test("Updating the topic title with emojis", assert => {
|
|||
});
|
||||
});
|
||||
|
||||
QUnit.test("does not show 'edit first post' button on topic/pm footer", assert => {
|
||||
visit("/t/pm-for-testing/12");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(!exists('.edit-message'), 'it does not show edit button');
|
||||
});
|
||||
});
|
||||
|
||||
acceptance("Topic featured links", {
|
||||
loggedIn: true,
|
||||
settings: {
|
||||
|
@ -207,19 +199,3 @@ QUnit.test("remove featured link", assert => {
|
|||
// assert.ok(!exists('.title-wrapper .topic-featured-link'), 'link is gone');
|
||||
// });
|
||||
});
|
||||
|
||||
acceptance("Personal message footer", {
|
||||
loggedIn: true,
|
||||
settings: {
|
||||
allow_staff_to_tag_pms: true,
|
||||
tagging_enabled: true
|
||||
}
|
||||
});
|
||||
|
||||
QUnit.test("shows edit 'first post button' on PM footer", assert => {
|
||||
visit("/t/pm-for-testing/12");
|
||||
|
||||
andThen(() => {
|
||||
assert.ok(exists('.edit-message'), 'it shows the edit button');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue