Merge pull request #13587 from edx/alisan/bookmark-btn-TNl-5625-unit-title-TNL-5623

add new unit title and renew bookmark button
This commit is contained in:
alisan617
2016-10-05 12:53:40 -04:00
committed by GitHub
9 changed files with 42 additions and 28 deletions

View File

@@ -267,6 +267,10 @@ class CoursewarePage(CoursePage):
""" Return the course tree breadcrumb shown above the sequential bar """
return [part.strip() for part in self.q(css='.path').text[0].split('>')]
def unit_title_visible(self):
""" Check if unit title is visible """
return self.q(css='.unit-title').visible
def bookmark_button_visible(self):
""" Check if bookmark button is visible """
EmptyPromise(lambda: self.q(css='.bookmark-button').visible, "Bookmark button visible").fulfill()