2015-04-07 02:14:00 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
2014-07-31 01:27:14 +08:00
|
|
|
|
2015-04-22 02:36:46 +08:00
|
|
|
acceptance("User", {loggedIn: true});
|
2014-07-31 01:27:14 +08:00
|
|
|
|
2016-11-11 02:33:31 +08:00
|
|
|
test("Invites", () => {
|
|
|
|
visit("/users/eviltrout/invited/pending");
|
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-invites-page').length, "has the body class");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
test("Messages", () => {
|
|
|
|
visit("/users/eviltrout/messages");
|
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-messages-page').length, "has the body class");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
test("Notifications", () => {
|
|
|
|
visit("/users/eviltrout/notifications");
|
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-notifications-page').length, "has the body class");
|
|
|
|
});
|
2016-08-03 01:21:06 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test("Root URL - Viewing Self", () => {
|
|
|
|
visit("/users/eviltrout");
|
|
|
|
andThen(() => {
|
2017-03-08 01:36:31 +08:00
|
|
|
ok($('body.user-activity-page').length, "has the body class");
|
|
|
|
equal(currentPath(), 'user.userActivity.index', "it defaults to summary");
|
2016-11-11 03:35:53 +08:00
|
|
|
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
2016-08-03 01:21:06 +08:00
|
|
|
});
|
|
|
|
});
|