mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
Each user activity filter has its own URL now.
This commit is contained in:
@ -1,12 +1,21 @@
|
||||
integration("User");
|
||||
|
||||
test("Profile", function() {
|
||||
test("Activity Streams", function() {
|
||||
expect(14);
|
||||
|
||||
visit("/users/eviltrout").then(function() {
|
||||
expect(2);
|
||||
var streamTest = function(url) {
|
||||
visit(url).then(function() {
|
||||
ok(exists(".user-heading"), "The heading is rendered");
|
||||
ok(exists("#user-stream"), "The stream is rendered");
|
||||
});
|
||||
};
|
||||
|
||||
ok(exists(".user-heading"), "The heading is rendered");
|
||||
ok(exists("#user-stream"), "The stream is rendered");
|
||||
});
|
||||
streamTest("/users/eviltrout");
|
||||
streamTest("/users/eviltrout/activity/topics");
|
||||
streamTest("/users/eviltrout/activity/posts");
|
||||
streamTest("/users/eviltrout/activity/replies");
|
||||
streamTest("/users/eviltrout/activity/likes-given");
|
||||
streamTest("/users/eviltrout/activity/likes-received");
|
||||
streamTest("/users/eviltrout/activity/edits");
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user