Files
edx-platform/common/test/acceptance/pages/lms/course_info.py
Jay Zoldak 806a6b9f99 Update edx-platform page objects and tests to be compatible with new bok-choy version
Change expectedFailure decorators to skip, because that still takes
a screenshot as if it were an error and at least one of those
take a super long time when running locally on devstack.
2014-03-21 17:10:15 -04:00

31 lines
651 B
Python

"""
Course info page.
"""
from .course_page import CoursePage
class CourseInfoPage(CoursePage):
"""
Course info.
"""
url_path = "info"
def is_browser_on_page(self):
return self.q(css='section.updates').present
@property
def num_updates(self):
"""
Return the number of updates on the page.
"""
return len(self.q(css='section.updates section article').results)
@property
def handout_links(self):
"""
Return a list of handout assets links.
"""
return self.q(css='section.handouts ol li a').map(lambda el: el.get_attribute('href')).results