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
0a822bb1
Commit
0a822bb1
authored
Aug 22, 2012
by
Dean Dieker
Committed by
Mark L. Chang
Aug 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a wait to take care of test failing when page loads slowly
parent
7e3c9e3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/acceptance_testing/features/static/accordion.py
+2
-0
No files found.
lms/djangoapps/acceptance_testing/features/static/accordion.py
View file @
0a822bb1
...
...
@@ -17,10 +17,12 @@ def i_should_see_an_element_with_class_of_classname(step,classname):
@step
(
u'I click on every item in every week of the course'
)
def
i_click_on_every_item_in_every_week_of_the_course
(
step
):
wait_until_id_renders
(
'accordion'
,
2
)
chapters
=
world
.
browser
.
find_elements_by_xpath
(
"//*[@id='accordion']//nav//h3"
)
num_chapters
=
len
(
chapters
)
k
=
1
while
k
<=
num_chapters
:
world
.
browser
.
find_element_by_xpath
(
"//*[@id='accordion']//nav//h3["
+
str
(
k
)
+
"]"
)
.
click
()
wait_until_class_renders
(
'p'
,
1
)
k
+=
1
...
...
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