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
159f020d
Commit
159f020d
authored
Oct 18, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1399 from edx/zoldak/fix-lms-navigation-tests
Change logic for section selection in navigation tests.
parents
70e5e80e
494a618c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
lms/djangoapps/courseware/features/navigation.py
+7
-8
No files found.
lms/djangoapps/courseware/features/navigation.py
View file @
159f020d
...
...
@@ -88,20 +88,19 @@ def view_course_multiple_sequences(step):
@step
(
u'I navigate to a section'
)
def
when_i_navigate_to_a_section
(
step
):
section_css
=
'h3[tabindex="-1"]'
world
.
css_click
(
section_css
)
# Open the 2nd section
world
.
css_click
(
css_selector
=
'div.chapter'
,
index
=
1
)
subsection_css
=
'a[href*="Test_Subsection_2/"]'
subid
=
"ui-accordion-accordion-panel-1"
world
.
wait_for_visible
(
"#"
+
subid
)
subsection_css
=
"ul.ui-accordion-content-active[id='{}'] > li > a"
.
format
(
subid
)
# Click on the subsection to see the content
world
.
css_click
(
subsection_css
)
@step
(
u'I navigate to a subsection'
)
def
when_i_navigate_to_a_subsection
(
step
):
subsection_css
=
'ul[id="ui-accordion-accordion-panel-0"]> li > a'
world
.
css_click
(
subsection_css
,
index
=
1
)
# Click on the 2nd subsection to see the content
subsection_css
=
'a[href*="Test_Subsection_2/"]'
world
.
css_click
(
subsection_css
)
@step
(
u'I navigate to an item in a sequence'
)
...
...
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