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
|
|
|
|
2017-06-15 01:57:58 +08:00
|
|
|
QUnit.test("Visit Page", assert => {
|
2015-03-19 23:48:16 +08:00
|
|
|
visit("/users");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2017-06-15 01:57:58 +08:00
|
|
|
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
|
|
|
|
2017-06-15 01:57:58 +08:00
|
|
|
QUnit.test("Visit All Time", assert => {
|
2015-06-12 18:40:07 +08:00
|
|
|
visit("/users?period=all");
|
|
|
|
andThen(() => {
|
2017-06-15 01:57:58 +08:00
|
|
|
assert.ok(exists('.time-read'), "has time read column");
|
2015-06-12 18:40:07 +08:00
|
|
|
});
|
2017-06-15 01:57:58 +08:00
|
|
|
});
|