fix the build

This commit is contained in:
Arpit Jalan 2018-02-27 15:44:34 +05:30
parent 4010d8d9f9
commit ec8cc833c6
2 changed files with 28 additions and 24 deletions

View File

@ -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');
});
});

View File

@ -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');
});
});