mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 12:17:17 +08:00
UX: Default user facing routes to /g
instead of /groups
. (#7042)
This commit is contained in:
@ -3,11 +3,11 @@ import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("Groups");
|
||||
|
||||
QUnit.test("Browsing Groups", async assert => {
|
||||
await visit("/groups?username=eviltrout");
|
||||
await visit("/g?username=eviltrout");
|
||||
|
||||
assert.equal(count(".groups-table-row"), 1, "it displays user's groups");
|
||||
|
||||
await visit("/groups");
|
||||
await visit("/g");
|
||||
|
||||
assert.equal(count(".groups-table-row"), 2, "it displays visible groups");
|
||||
assert.equal(
|
||||
@ -33,7 +33,7 @@ QUnit.test("Browsing Groups", async assert => {
|
||||
|
||||
assert.ok(exists(".modal.login-modal"), "it shows the login modal");
|
||||
|
||||
await click("a[href='/groups/discourse/members']");
|
||||
await click("a[href='/g/discourse/members']");
|
||||
|
||||
assert.equal(
|
||||
find(".group-info-name")
|
||||
|
Reference in New Issue
Block a user