2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("User Directory");
|
2015-03-17 03:14:33 +08:00
|
|
|
|
2018-04-23 14:42:25 +08:00
|
|
|
QUnit.test("Visit Page", async assert => {
|
|
|
|
await visit("/users");
|
|
|
|
assert.ok($('body.users-page').length, "has the body class");
|
|
|
|
assert.ok(exists('.directory table tr'), "has a list of users");
|
2015-03-17 03:14:33 +08:00
|
|
|
});
|
2015-06-12 18:40:07 +08:00
|
|
|
|
2018-04-23 14:42:25 +08:00
|
|
|
QUnit.test("Visit All Time", async assert => {
|
|
|
|
await visit("/users?period=all");
|
|
|
|
assert.ok(exists('.time-read'), "has time read column");
|
|
|
|
});
|