Files
edx-platform/common/test/acceptance/pages/lms/course_about.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
730 B
Python

"""
Course about page (with registration button)
"""
from .course_page import CoursePage
from .register import RegisterPage
class CourseAboutPage(CoursePage):
"""
Course about page (with registration button)
"""
url_path = "about"
def is_browser_on_page(self):
return self.q(css='section.course-info').present
def register(self):
"""
Navigate to the registration page.
Waits for the registration page to load, then
returns the registration page object.
"""
self.q(css='a.register').first.click()
registration_page = RegisterPage(self.browser, self.course_id)
registration_page.wait_for_page()
return registration_page