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
494a618c
Commit
494a618c
authored
Oct 18, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change logic for section selection in navigation tests.
parent
9df72360
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 @
494a618c
...
@@ -88,20 +88,19 @@ def view_course_multiple_sequences(step):
...
@@ -88,20 +88,19 @@ def view_course_multiple_sequences(step):
@step
(
u'I navigate to a section'
)
@step
(
u'I navigate to a section'
)
def
when_i_navigate_to_a_section
(
step
):
def
when_i_navigate_to_a_section
(
step
):
section_css
=
'h3[tabindex="-1"]'
# Open the 2nd section
world
.
css_click
(
section_css
)
world
.
css_click
(
css_selector
=
'div.chapter'
,
index
=
1
)
subsection_css
=
'a[href*="Test_Subsection_2/"]'
subid
=
"ui-accordion-accordion-panel-1"
# Click on the subsection to see the content
world
.
wait_for_visible
(
"#"
+
subid
)
subsection_css
=
"ul.ui-accordion-content-active[id='{}'] > li > a"
.
format
(
subid
)
world
.
css_click
(
subsection_css
)
world
.
css_click
(
subsection_css
)
@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
):
subsection_css
=
'ul[id="ui-accordion-accordion-panel-0"]> li > a'
# Click on the 2nd subsection to see the content
world
.
css_click
(
subsection_css
,
index
=
1
)
subsection_css
=
'a[href*="Test_Subsection_2/"]'
world
.
css_click
(
subsection_css
)
@step
(
u'I navigate to an item in a sequence'
)
@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