Merge pull request #10132 from edx/chrome-bok-choy-test-as-student-in-alpha-plus-beta

Fixed test, test as student in alpha and beta failing on chrome
This commit is contained in:
raeeschachar
2015-10-13 19:16:33 +05:00

View File

@@ -30,7 +30,7 @@ class StaffPage(CoursewarePage):
"""
Set the current view mode, e.g. "Staff", "Student" or a content group.
"""
self.q(css=self.VIEW_MODE_OPTIONS_CSS).filter(lambda el: el.text == view_mode).first.click()
self.q(css=self.VIEW_MODE_OPTIONS_CSS).filter(lambda el: el.text.strip() == view_mode).first.click()
self.wait_for_ajax()
def set_staff_view_mode_specific_student(self, username_or_email):