scroll to top after saving

fixed broken bok choy tests
This commit is contained in:
Zia Fazal
2015-09-16 15:19:43 +05:00
parent d265932621
commit 5effbf14f2
3 changed files with 15 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ The methods in these classes are organized into several conceptual buckets:
import os
from bok_choy.promise import EmptyPromise
from ...tests.helpers import disable_animations
from .course_page import CoursePage
@@ -284,6 +285,7 @@ class Certificate(object):
"""
Create a new certificate.
"""
disable_animations(self.page)
self.find_css('.action-primary').first.click()
self.page.wait_for_ajax()