Commit 6df9b504 by Nimisha Asthagiri

fixup tests.

parent 17c308b9
...@@ -245,7 +245,7 @@ class CoursewarePage(CoursePage): ...@@ -245,7 +245,7 @@ class CoursewarePage(CoursePage):
@property @property
def breadcrumb(self): def breadcrumb(self):
""" Return the course tree breadcrumb shown above the sequential bar """ """ 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): def bookmark_button_visible(self):
""" Check if bookmark button is visible """ """ Check if bookmark button is visible """
......
...@@ -92,6 +92,7 @@ def when_i_navigate_to_a_section(step): ...@@ -92,6 +92,7 @@ def when_i_navigate_to_a_section(step):
world.disable_jquery_animations() world.disable_jquery_animations()
# Open the 2nd section # Open the 2nd section
world.css_click(css_selector='.content-menu-button')
world.css_click(css_selector='.chapter', index=1) world.css_click(css_selector='.chapter', index=1)
subsection_css = 'a[href*="Test_Subsection_2/"]' subsection_css = 'a[href*="Test_Subsection_2/"]'
...@@ -102,6 +103,7 @@ def when_i_navigate_to_a_section(step): ...@@ -102,6 +103,7 @@ def when_i_navigate_to_a_section(step):
@step(u'I navigate to a subsection') @step(u'I navigate to a subsection')
def when_i_navigate_to_a_subsection(step): def when_i_navigate_to_a_subsection(step):
# Click on the 2nd subsection to see the content # Click on the 2nd subsection to see the content
world.css_click(css_selector='.content-menu-button')
subsection_css = 'a[href*="Test_Subsection_2/"]' subsection_css = 'a[href*="Test_Subsection_2/"]'
world.css_click(subsection_css) world.css_click(subsection_css)
......
...@@ -28,7 +28,6 @@ class RenderXBlockTestMixin(object): ...@@ -28,7 +28,6 @@ class RenderXBlockTestMixin(object):
COURSEWARE_CHROME_HTML_ELEMENTS = [ COURSEWARE_CHROME_HTML_ELEMENTS = [
'<ol class="course-tabs"', '<ol class="course-tabs"',
'<footer id="footer-openedx"', '<footer id="footer-openedx"',
'<div class="window-wrap"',
'<div class="preview-menu"', '<div class="preview-menu"',
'<div class="container"' '<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