Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
6df9b504
Commit
6df9b504
authored
May 05, 2016
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup tests.
parent
17c308b9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
common/test/acceptance/pages/lms/courseware.py
+1
-1
lms/djangoapps/courseware/features/navigation.py
+2
-0
lms/djangoapps/courseware/testutils.py
+0
-1
No files found.
common/test/acceptance/pages/lms/courseware.py
View file @
6df9b504
...
@@ -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 """
...
...
lms/djangoapps/courseware/features/navigation.py
View file @
6df9b504
...
@@ -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
)
...
...
lms/djangoapps/courseware/testutils.py
View file @
6df9b504
...
@@ -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"'
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment