discourse/test/javascripts/acceptance/users-test.js.es6

17 lines
462 B
Plaintext
Raw Normal View History

import { acceptance } from "helpers/qunit-helpers";
acceptance("User Directory");
2017-06-15 01:57:58 +08:00
QUnit.test("Visit Page", assert => {
visit("/users");
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");
});
});
2017-06-15 01:57:58 +08:00
QUnit.test("Visit All Time", assert => {
visit("/users?period=all");
andThen(() => {
2017-06-15 01:57:58 +08:00
assert.ok(exists('.time-read'), "has time read column");
});
2017-06-15 01:57:58 +08:00
});