Commit 6df9b504 by Nimisha Asthagiri

fixup tests.

parent 17c308b9
......@@ -245,7 +245,7 @@ class CoursewarePage(CoursePage):
@property
def breadcrumb(self):
""" Return the course tree breadcrumb shown above the sequential bar """
return [part.strip() for part in self.q(css='.path').text[0].split('>')]
return [part.strip() for part in self.q(css='.breadcrumb-label').text[0].split('>')]
def bookmark_button_visible(self):
""" Check if bookmark button is visible """
......
......@@ -92,6 +92,7 @@ def when_i_navigate_to_a_section(step):
world.disable_jquery_animations()
# Open the 2nd section
world.css_click(css_selector='.content-menu-button')
world.css_click(css_selector='.chapter', index=1)
subsection_css = 'a[href*="Test_Subsection_2/"]'
......@@ -102,6 +103,7 @@ def when_i_navigate_to_a_section(step):
@step(u'I navigate to a subsection')
def when_i_navigate_to_a_subsection(step):
# Click on the 2nd subsection to see the content
world.css_click(css_selector='.content-menu-button')
subsection_css = 'a[href*="Test_Subsection_2/"]'
world.css_click(subsection_css)
......
......@@ -28,7 +28,6 @@ class RenderXBlockTestMixin(object):
COURSEWARE_CHROME_HTML_ELEMENTS = [
'<ol class="course-tabs"',
'<footer id="footer-openedx"',
'<div class="window-wrap"',
'<div class="preview-menu"',
'<div class="container"'
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment