FIX: do not show composer actions if irrelevant

This commit is contained in:
Joffrey JAFFEUX
2018-05-23 18:25:58 +02:00
committed by GitHub
parent d2efd338e6
commit 7232a6e5a9
2 changed files with 11 additions and 1 deletions

View File

@ -104,6 +104,15 @@ QUnit.test('shared draft', async assert => {
assert.ok(find('#reply-control.composing-shared-draft').length === 1);
});
QUnit.test('hide component if no content', async assert => {
const composerActions = selectKit('.composer-actions');
await visit('/u/eviltrout/messages');
await click('.new-private-message');
assert.ok(composerActions.el().hasClass("is-hidden"));
});
QUnit.test('interactions', async assert => {
const composerActions = selectKit('.composer-actions');
const quote = 'Life is like riding a bicycle.';