mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:24:21 +08:00
34 lines
893 B
JavaScript
34 lines
893 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("User", {loggedIn: true});
|
|
|
|
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");
|
|
});
|
|
});
|
|
|
|
test("Root URL - Viewing Self", () => {
|
|
visit("/users/eviltrout");
|
|
andThen(() => {
|
|
ok($('body.user-summary-page').length, "has the body class");
|
|
equal(currentPath(), 'user.summary', "it defaults to summary");
|
|
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
|
});
|
|
});
|