Commit cca52b90 by Robert Raposa Committed by Diana Huang

Fix failures with simplified subsection title selector.

parent 584e7fda
...@@ -56,7 +56,7 @@ class CourseOutlinePage(PageObject): ...@@ -56,7 +56,7 @@ class CourseOutlinePage(PageObject):
SECTION_SELECTOR = '.outline-item.section:nth-of-type({0})' SECTION_SELECTOR = '.outline-item.section:nth-of-type({0})'
SECTION_TITLES_SELECTOR = '.section-name span' SECTION_TITLES_SELECTOR = '.section-name span'
SUBSECTION_SELECTOR = SECTION_SELECTOR + ' .subsection:nth-of-type({1}) .outline-item' SUBSECTION_SELECTOR = SECTION_SELECTOR + ' .subsection:nth-of-type({1}) .outline-item'
SUBSECTION_TITLES_SELECTOR = SECTION_SELECTOR + ' .subsection a span:first-child' SUBSECTION_TITLES_SELECTOR = SECTION_SELECTOR + ' .subsection .subsection-title'
OUTLINE_RESUME_COURSE_SELECTOR = '.outline-item .resume-right' OUTLINE_RESUME_COURSE_SELECTOR = '.outline-item .resume-right'
def __init__(self, browser, parent_page): def __init__(self, browser, parent_page):
......
...@@ -40,7 +40,7 @@ from django.utils.translation import ugettext as _ ...@@ -40,7 +40,7 @@ from django.utils.translation import ugettext as _
> >
<div class="subsection-text"> <div class="subsection-text">
## Subsection title ## Subsection title
<span>${ subsection['display_name'] }</span> <span class="subsection-title">${ subsection['display_name'] }</span>
<div class="details"> <div class="details">
## There are behavior differences between rendering of subsections which have ## There are behavior differences between rendering of subsections which have
......
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