mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 06:45:38 +08:00
FIX: Broken tests. :(
This commit is contained in:
parent
42fd4f987e
commit
c310a32ac1
test/javascripts/acceptance
@ -18,7 +18,7 @@ function hasTopicList() {
|
|||||||
test("Root URL", () => {
|
test("Root URL", () => {
|
||||||
visit("/users/eviltrout");
|
visit("/users/eviltrout");
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
|
equal(currentPath(), 'user.summary', "it defaults to summary");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -26,8 +26,8 @@ test("Notifications", () => {
|
|||||||
test("Root URL - Viewing Self", () => {
|
test("Root URL - Viewing Self", () => {
|
||||||
visit("/users/eviltrout");
|
visit("/users/eviltrout");
|
||||||
andThen(() => {
|
andThen(() => {
|
||||||
ok($('body.user-summary-page').length, "has the body class");
|
ok($('body.user-activity-page').length, "has the body class");
|
||||||
equal(currentPath(), 'user.summary', "it defaults to summary");
|
equal(currentPath(), 'user.userActivity.index', "it defaults to summary");
|
||||||
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
ok(exists('.container.viewing-self'), "has the viewing-self class");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user