Removed commented code Fixed broken tests and quality violations instructor dashboard test fixes Fixed pep8 quality violation Removed few remaining non a11y tests Fixed quality violations removed edxapp_acceptance setup file
27 lines
592 B
Python
27 lines
592 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Student dashboard page.
|
|
"""
|
|
|
|
|
|
from bok_choy.page_object import PageObject
|
|
|
|
from common.test.acceptance.pages.lms import BASE_URL
|
|
|
|
|
|
class DashboardPage(PageObject):
|
|
"""
|
|
Student dashboard, where the student can view
|
|
courses she/he has registered for.
|
|
"""
|
|
url = "{base}/dashboard".format(base=BASE_URL)
|
|
|
|
def is_browser_on_page(self):
|
|
return self.q(css='.my-courses').present
|
|
|
|
def get_courses(self):
|
|
"""
|
|
Get all courses shown in the dashboard
|
|
"""
|
|
return self.q(css='ul.listing-courses .course-item')
|