2015-04-06 14:14:00 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("User Directory");
|
2015-03-16 15:14:33 -04:00
|
|
|
|
2017-06-14 13:57:58 -04:00
|
|
|
QUnit.test("Visit Page", assert => {
|
2015-03-19 11:48:16 -04:00
|
|
|
visit("/users");
|
2015-03-19 07:22:56 -04:00
|
|
|
andThen(() => {
|
2017-06-14 13:57:58 -04: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 15:14:33 -04:00
|
|
|
});
|
|
|
|
});
|
2015-06-12 06:40:07 -04:00
|
|
|
|
2017-06-14 13:57:58 -04:00
|
|
|
QUnit.test("Visit All Time", assert => {
|
2015-06-12 06:40:07 -04:00
|
|
|
visit("/users?period=all");
|
|
|
|
andThen(() => {
|
2017-06-14 13:57:58 -04:00
|
|
|
assert.ok(exists('.time-read'), "has time read column");
|
2015-06-12 06:40:07 -04:00
|
|
|
});
|
2017-06-14 13:57:58 -04:00
|
|
|
});
|