Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
27d51b34
Commit
27d51b34
authored
11 years ago
by
Will Daly
Browse files
Options
Downloads
Patches
Plain Diff
Attempt to fix video test
parent
73e6e6f4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/djangoapps/contentstore/features/common.py
+2
-1
2 additions, 1 deletion
cms/djangoapps/contentstore/features/common.py
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+8
-3
8 additions, 3 deletions
...ontentstore/features/component_settings_editor_helpers.py
with
10 additions
and
4 deletions
cms/djangoapps/contentstore/features/common.py
+
2
−
1
View file @
27d51b34
...
...
@@ -209,7 +209,8 @@ def i_created_a_video_component(step):
world
.
create_component_instance
(
step
,
'
.large-video-icon
'
,
'
video
'
,
'
.xmodule_VideoModule
'
'
.xmodule_VideoModule
'
,
has_multiple_templates
=
False
)
...
...
This diff is collapsed.
Click to expand it.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+
8
−
3
View file @
27d51b34
...
...
@@ -7,10 +7,16 @@ from terrain.steps import reload_the_page
@world.absorb
def
create_component_instance
(
step
,
component_button_css
,
category
,
expected_css
,
boilerplate
=
None
):
def
create_component_instance
(
step
,
component_button_css
,
category
,
expected_css
,
boilerplate
=
None
,
has_multiple_templates
=
True
):
click_new_component_button
(
step
,
component_button_css
)
click_component_from_menu
(
category
,
boilerplate
,
expected_css
)
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
):
...
...
@@ -34,7 +40,6 @@ def click_component_from_menu(category, boilerplate, expected_css):
elements
=
world
.
css_find
(
elem_css
)
assert_equal
(
len
(
elements
),
1
)
world
.
css_click
(
elem_css
)
assert_equal
(
1
,
len
(
world
.
css_find
(
expected_css
)))
@world.absorb
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment