FIX: clicking a group mention on mobile was 404ing

(cc @featheredtoast)
This commit is contained in:
Régis Hanol
2018-05-09 17:27:59 +02:00
parent 6b1ff0edd3
commit deaf3682e9
4 changed files with 34 additions and 17 deletions

View File

@ -0,0 +1,15 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Group Card - Mobile", { mobileView: true });
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-details-container'), 'group page show be shown');
});
});