2015-04-06 14:14:00 -04:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
2014-07-30 13:27:14 -04:00
|
|
|
|
2015-04-21 14:36:46 -04:00
|
|
|
acceptance("User", {loggedIn: true});
|
2014-07-30 13:27:14 -04:00
|
|
|
|
2016-11-10 13:33:31 -05: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-02 13:21:06 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
test("Root URL - Viewing Self", () => {
|
|
|
|
visit("/users/eviltrout");
|
|
|
|
andThen(() => {
|
2016-11-10 13:33:31 -05:00
|
|
|
ok($('body.user-summary-page').length, "has the body class");
|
2016-08-02 13:21:06 -04:00
|
|
|
equal(currentPath(), 'user.summary', "it defaults to summary");
|
2016-11-10 14:35:53 -05:00
|
|
|
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
2016-08-02 13:21:06 -04:00
|
|
|
});
|
|
|
|
});
|