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", () => {
|
2017-03-29 02:27:54 +08:00
|
|
|
visit("/u/eviltrout/invited/pending");
|
2016-11-11 02:33:31 +08:00
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-invites-page').length, "has the body class");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
test("Messages", () => {
|
2017-03-29 02:27:54 +08:00
|
|
|
visit("/u/eviltrout/messages");
|
2016-11-11 02:33:31 +08:00
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-messages-page').length, "has the body class");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
test("Notifications", () => {
|
2017-03-29 02:27:54 +08:00
|
|
|
visit("/u/eviltrout/notifications");
|
2016-11-11 02:33:31 +08:00
|
|
|
andThen(() => {
|
|
|
|
ok($('body.user-notifications-page').length, "has the body class");
|
|
|
|
});
|
2016-08-03 01:21:06 +08:00
|
|
|
});
|
|
|
|
|
|
|
|
test("Root URL - Viewing Self", () => {
|
2017-03-29 02:27:54 +08:00
|
|
|
visit("/u/eviltrout");
|
2016-08-03 01:21:06 +08:00
|
|
|
andThen(() => {
|
2017-03-08 01:36:31 +08:00
|
|
|
ok($('body.user-activity-page').length, "has the body class");
|
2017-03-21 02:14:50 +08:00
|
|
|
equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
|
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
|
|
|
});
|
|
|
|
});
|