mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 00:33:44 +08: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.
11 lines
272 B
JavaScript
11 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");
|
|
});
|
|
});
|