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
|
|
|
|
2015-03-19 23:48:16 +08:00
|
|
|
test("Visit Page", function() {
|
|
|
|
visit("/users");
|
2015-03-19 19:22:56 +08:00
|
|
|
andThen(() => {
|
2016-11-11 02:33:31 +08:00
|
|
|
ok($('body.users-page').length, "has the body class");
|
2015-03-17 03:14:33 +08:00
|
|
|
ok(exists('.directory table tr'), "has a list of users");
|
|
|
|
});
|
|
|
|
});
|
2015-06-12 18:40:07 +08:00
|
|
|
|
|
|
|
test("Visit All Time", function() {
|
|
|
|
visit("/users?period=all");
|
|
|
|
andThen(() => {
|
|
|
|
ok(exists('.time-read'), "has time read column");
|
|
|
|
});
|
|
|
|
});
|