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
ee46b3ef
Commit
ee46b3ef
authored
Jul 29, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
One click categories do not have animations
parent
419207ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+5
-4
cms/djangoapps/contentstore/features/problem-editor.py
+5
-1
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
ee46b3ef
...
...
@@ -12,16 +12,17 @@ def create_component_instance(step, component_button_css, category,
has_multiple_templates
=
True
):
click_new_component_button
(
step
,
component_button_css
)
def
animation_done
(
_driver
):
return
world
.
browser
.
evaluate_script
(
"$('div.new-component').css('display')"
)
==
'none'
world
.
wait_for
(
animation_done
)
if
category
==
'problem'
or
category
==
'html'
:
def
animation_done
(
_driver
):
return
world
.
browser
.
evaluate_script
(
"$('div.new-component').css('display')"
)
==
'none'
world
.
wait_for
(
animation_done
)
if
has_multiple_templates
:
click_component_from_menu
(
category
,
boilerplate
,
expected_css
)
assert_equal
(
1
,
len
(
world
.
css_find
(
expected_css
)))
@world.absorb
def
click_new_component_button
(
step
,
component_button_css
):
step
.
given
(
'I have clicked the new unit button'
)
...
...
cms/djangoapps/contentstore/features/problem-editor.py
View file @
ee46b3ef
...
...
@@ -155,8 +155,12 @@ def cancel_does_not_save_changes(step):
@step
(
'I have created a LaTeX Problem'
)
def
create_latex_problem
(
step
):
world
.
click_new_component_button
(
step
,
'.large-problem-icon'
)
def
animation_done
(
_driver
):
return
world
.
browser
.
evaluate_script
(
"$('div.new-component').css('display')"
)
==
'none'
world
.
wait_for
(
animation_done
)
# Go to advanced tab.
world
.
css_click
(
'#ui-id-2'
,
success_condition
=
lambda
:
world
.
css_has_class
(
'div.ui-tabs li'
,
'ui-state-active'
,
index
=
1
)
)
world
.
css_click
(
'#ui-id-2'
)
world
.
click_component_from_menu
(
"problem"
,
"latex_problem.yaml"
,
'.xmodule_CapaModule'
)
...
...
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