FEATURE: Disable minimum post length check when in PM with non human users.

https://meta.discourse.org/t/discourse-narrative-bot-beta-feedback/58621/65?u=tgxworld
This commit is contained in:
Guo Xiang Tan
2017-04-27 11:53:53 +08:00
parent b755279cf0
commit 59b906ab0d
11 changed files with 138 additions and 24 deletions

View File

@ -160,6 +160,14 @@ test("Title length for private messages", function() {
ok(composer.get('titleLengthValid'), "in the range is okay");
});
test("Post length for private messages with non human users", function() {
const composer = createComposer({
topic: Ember.Object.create({ pm_with_non_human_user: true })
});
equal(composer.get('minimumPostLength'), 1);
});
test('editingFirstPost', function() {
const composer = createComposer();
ok(!composer.get('editingFirstPost'), "it's false by default");