This is where they should be as far as ember is concerned. Note this is a huge commit and we should be really careful everything continues to work properly.
26 lines
920 B
JavaScript
26 lines
920 B
JavaScript
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
acceptance("User Directory");
|
|
|
|
QUnit.test("Visit Page", async (assert) => {
|
|
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("/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");
|
|
});
|