Fixed test as student in alpha and beta failing on chrome

This commit is contained in:
raeeschachar
2015-10-13 15:50:46 +05:00
parent 69c47e0951
commit b69cbfa100

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):