2015-04-06 13:14:00 -05:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("User Directory");
|
2015-03-16 14:14:33 -05:00
|
|
|
|
2018-04-23 01:42:25 -05:00
|
|
|
QUnit.test("Visit Page", async assert => {
|
2018-05-16 09:20:17 -05:00
|
|
|
await visit("/u");
|
2018-06-15 10:03:24 -05:00
|
|
|
assert.ok($("body.users-page").length, "has the body class");
|
|
|
|
assert.ok(exists(".directory table tr"), "has a list of users");
|
2015-03-16 14:14:33 -05:00
|
|
|
});
|
2015-06-12 05:40:07 -05:00
|
|
|
|
2018-04-23 01:42:25 -05:00
|
|
|
QUnit.test("Visit All Time", async assert => {
|
2018-05-16 09:20:17 -05:00
|
|
|
await visit("/u?period=all");
|
2018-06-15 10:03:24 -05:00
|
|
|
assert.ok(exists(".time-read"), "has time read column");
|
2018-04-23 01:42:25 -05:00
|
|
|
});
|
2018-05-16 09:20:17 -05:00
|
|
|
|
|
|
|
QUnit.test("Visit Without Usernames", async assert => {
|
|
|
|
await visit("/u?exclude_usernames=system");
|
2018-06-15 10:03:24 -05:00
|
|
|
assert.ok($("body.users-page").length, "has the body class");
|
|
|
|
assert.ok(exists(".directory table tr"), "has a list of users");
|
2018-05-16 09:20:17 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
QUnit.test("Visit With Group Filter", async assert => {
|
|
|
|
await visit("/u?group=trust_level_0");
|
2018-06-15 10:03:24 -05:00
|
|
|
assert.ok($("body.users-page").length, "has the body class");
|
|
|
|
assert.ok(exists(".directory table tr"), "has a list of users");
|
|
|
|
});
|