mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 11:27:32 +08:00
FIX: clicking a group mention on mobile was 404ing
(cc @featheredtoast)
This commit is contained in:
15
test/javascripts/acceptance/group-card-mobile-test.js.es6
Normal file
15
test/javascripts/acceptance/group-card-mobile-test.js.es6
Normal 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');
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user