In user profile changing page should reposition window to top
When we change the page using pagination in the user profile page the data gets updated but the position of the window remains at pagination. It should change position of window to top. TNL-107
This commit is contained in:
@@ -419,6 +419,7 @@ class DiscussionUserProfileTest(UniqueCourseTest):
|
||||
current_page = 1
|
||||
total_pages = max(num_threads - 1, 1) / self.PAGE_SIZE + 1
|
||||
all_pages = range(1, total_pages + 1)
|
||||
return page
|
||||
|
||||
def _check_page():
|
||||
# ensure the page being displayed as "current" is the expected one
|
||||
@@ -479,6 +480,12 @@ class DiscussionUserProfileTest(UniqueCourseTest):
|
||||
def test_151_threads(self):
|
||||
self.check_pages(151)
|
||||
|
||||
def test_pagination_window_reposition(self):
|
||||
page = self.check_pages(50)
|
||||
page.click_next_page()
|
||||
page.wait_for_ajax()
|
||||
self.assertTrue(page.is_window_on_top())
|
||||
|
||||
|
||||
@attr('shard_1')
|
||||
class DiscussionSearchAlertTest(UniqueCourseTest):
|
||||
|
||||
Reference in New Issue
Block a user