mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 11:48:08 +08:00
Upgrade QUnit to latest version
This commit is contained in:
@ -2,32 +2,32 @@ import { acceptance } from "helpers/qunit-helpers";
|
||||
|
||||
acceptance("User", {loggedIn: true});
|
||||
|
||||
test("Invites", () => {
|
||||
QUnit.test("Invites", assert => {
|
||||
visit("/u/eviltrout/invited/pending");
|
||||
andThen(() => {
|
||||
ok($('body.user-invites-page').length, "has the body class");
|
||||
assert.ok($('body.user-invites-page').length, "has the body class");
|
||||
});
|
||||
});
|
||||
|
||||
test("Messages", () => {
|
||||
QUnit.test("Messages", assert => {
|
||||
visit("/u/eviltrout/messages");
|
||||
andThen(() => {
|
||||
ok($('body.user-messages-page').length, "has the body class");
|
||||
assert.ok($('body.user-messages-page').length, "has the body class");
|
||||
});
|
||||
});
|
||||
|
||||
test("Notifications", () => {
|
||||
QUnit.test("Notifications", assert => {
|
||||
visit("/u/eviltrout/notifications");
|
||||
andThen(() => {
|
||||
ok($('body.user-notifications-page').length, "has the body class");
|
||||
assert.ok($('body.user-notifications-page').length, "has the body class");
|
||||
});
|
||||
});
|
||||
|
||||
test("Root URL - Viewing Self", () => {
|
||||
QUnit.test("Root URL - Viewing Self", assert => {
|
||||
visit("/u/eviltrout");
|
||||
andThen(() => {
|
||||
ok($('body.user-activity-page').length, "has the body class");
|
||||
equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
|
||||
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
||||
assert.ok($('body.user-activity-page').length, "has the body class");
|
||||
assert.equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
|
||||
assert.ok(exists('.container.viewing-self'), "has the viewing-self class");
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user