mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 12:54:50 +08:00
Allow parameters for group and username filters on directory (#5815)
This commit is contained in:
@ -2,12 +2,24 @@ import { acceptance } from "helpers/qunit-helpers";
|
||||
acceptance("User Directory");
|
||||
|
||||
QUnit.test("Visit Page", async assert => {
|
||||
await visit("/users");
|
||||
await visit("/u");
|
||||
assert.ok($('body.users-page').length, "has the body class");
|
||||
assert.ok(exists('.directory table tr'), "has a list of users");
|
||||
});
|
||||
|
||||
QUnit.test("Visit All Time", async assert => {
|
||||
await visit("/users?period=all");
|
||||
await visit("/u?period=all");
|
||||
assert.ok(exists('.time-read'), "has time read column");
|
||||
});
|
||||
|
||||
QUnit.test("Visit Without Usernames", async assert => {
|
||||
await visit("/u?exclude_usernames=system");
|
||||
assert.ok($('body.users-page').length, "has the body class");
|
||||
assert.ok(exists('.directory table tr'), "has a list of users");
|
||||
});
|
||||
|
||||
QUnit.test("Visit With Group Filter", async assert => {
|
||||
await visit("/u?group=trust_level_0");
|
||||
assert.ok($('body.users-page').length, "has the body class");
|
||||
assert.ok(exists('.directory table tr'), "has a list of users");
|
||||
});
|
Reference in New Issue
Block a user