Refactor user summary page to use more components
This commit is contained in:
@@ -30,4 +30,17 @@ QUnit.test("Root URL - Viewing Self", assert => {
|
||||
assert.equal(currentPath(), 'user.userActivity.index', "it defaults to activity");
|
||||
assert.ok(exists('.container.viewing-self'), "has the viewing-self class");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test("Viewing Summary", assert => {
|
||||
visit("/u/eviltrout/summary");
|
||||
andThen(() => {
|
||||
assert.ok(exists('.replies-section li a'), 'replies');
|
||||
assert.ok(exists('.topics-section li a'), 'topics');
|
||||
assert.ok(exists('.links-section li a'), 'links');
|
||||
assert.ok(exists('.replied-section .user-info'), 'liked by');
|
||||
assert.ok(exists('.liked-by-section .user-info'), 'liked by');
|
||||
assert.ok(exists('.liked-section .user-info'), 'liked');
|
||||
assert.ok(exists('.badges-section .badge-card'), 'badges');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user