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
b5f1d998
Commit
b5f1d998
authored
Oct 09, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1282 from edx/will/wait-between-component-clicks
Wait between clicks for new component
parents
1e353985
95b284f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
cms/djangoapps/contentstore/features/component.py
+9
-0
No files found.
cms/djangoapps/contentstore/features/component.py
View file @
b5f1d998
...
@@ -39,6 +39,15 @@ def add_a_single_step_component(step):
...
@@ -39,6 +39,15 @@ def add_a_single_step_component(step):
css_selector
=
'a[data-type="{}"]'
.
format
(
component
.
lower
())
css_selector
=
'a[data-type="{}"]'
.
format
(
component
.
lower
())
world
.
css_click
(
css_selector
)
world
.
css_click
(
css_selector
)
# In the current implementation, all the "new component"
# buttons are handled by one BackBone.js view.
# If we click two buttons at super-human speed,
# the view will miss the second click while it's
# processing the first.
# To account for this, we wait for each component
# to be created before clicking the next component.
world
.
wait_for_visible
(
'section.xmodule_{}Module'
.
format
(
component
))
@step
(
u'I see this type of single step component:$'
)
@step
(
u'I see this type of single step component:$'
)
def
see_a_single_step_component
(
step
):
def
see_a_single_step_component
(
step
):
...
...
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