show card on preview panel.

refactor user and group cards

refactor userLoading to loading

add logic to display cards above mentions for fixed placements
This commit is contained in:
Jeff Wong
2018-04-17 15:52:23 -07:00
parent efd744b049
commit 252dd32895
15 changed files with 615 additions and 597 deletions

View File

@ -11,4 +11,17 @@ QUnit.test("card", assert => {
assert.ok(visible('#user-card'), 'card should appear');
});
});
});
QUnit.test("group card", assert => {
visit('/t/301/1');
assert.ok(invisible('#group-card'), 'user card is invisible by default');
click('a.mention-group:first');
andThen(() => {
assert.ok(visible('#group-card'), 'card should appear');
});
});