mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-24 06:22:31 -05:00
40f86829f7
* We now use a new custom view, {{cloaked-collection}} to display posts in a topic. * Posts are removed and inserted (cloaked/uncloaked) into the DOM dynamically based on whether they are visible in the current browser viewport. * There's been a lot of refactoring to ensure the relationship between the post views and the topic controller is sane. * Lots of fixes involving jumping to a post, including a new LockOn component to that tries to stay focused on an element even if stuff is loading before it in the DOM that would normally push it down.
10 lines
272 B
JavaScript
10 lines
272 B
JavaScript
integration("View Topic");
|
|
|
|
test("Enter a Topic", function() {
|
|
expect(2);
|
|
|
|
visit("/t/internationalization-localization/280").then(function() {
|
|
ok(exists("#topic"), "The was rendered");
|
|
ok(exists("#topic .post-cloak"), "The topic has cloaked posts");
|
|
});
|
|
});
|