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
323a23f5
Commit
323a23f5
authored
Aug 13, 2014
by
cahrens
Committed by
Adam Palay
Aug 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Verify loading indicator has been hidden.
STUD-2090
parent
0edac154
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
cms/djangoapps/contentstore/features/common.py
+9
-0
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+3
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
323a23f5
...
@@ -248,10 +248,19 @@ def create_unit_from_course_outline():
...
@@ -248,10 +248,19 @@ def create_unit_from_course_outline():
world
.
wait_for_mathjax
()
world
.
wait_for_mathjax
()
world
.
wait_for_xmodule
()
world
.
wait_for_xmodule
()
world
.
wait_for_loading
()
assert
world
.
is_css_present
(
'ul.new-component-type'
)
assert
world
.
is_css_present
(
'ul.new-component-type'
)
@world.absorb
def
wait_for_loading
():
"""
Waits for the loading indicator to be hidden.
"""
world
.
wait_for
(
lambda
_driver
:
len
(
world
.
browser
.
find_by_css
(
'div.ui-loading.is-hidden'
))
>
0
)
@step
(
'I have clicked the new unit button$'
)
@step
(
'I have clicked the new unit button$'
)
@step
(
u'I am in Studio editing a new unit$'
)
@step
(
u'I am in Studio editing a new unit$'
)
def
edit_new_unit
(
step
):
def
edit_new_unit
(
step
):
...
...
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
323a23f5
...
@@ -6,7 +6,6 @@ from nose.tools import assert_equal, assert_in # pylint: disable=E0611
...
@@ -6,7 +6,6 @@ from nose.tools import assert_equal, assert_in # pylint: disable=E0611
from
terrain.steps
import
reload_the_page
from
terrain.steps
import
reload_the_page
from
common
import
type_in_codemirror
from
common
import
type_in_codemirror
from
selenium.webdriver.common.keys
import
Keys
from
selenium.webdriver.common.keys
import
Keys
from
cms.envs.common
import
FEATURES
@world.absorb
@world.absorb
...
@@ -123,6 +122,9 @@ def ensure_settings_visible():
...
@@ -123,6 +122,9 @@ def ensure_settings_visible():
@world.absorb
@world.absorb
def
edit_component
(
index
=
0
):
def
edit_component
(
index
=
0
):
# Verify that the "loading" indication has been hidden.
world
.
wait_for_loading
()
# Verify that the "edit" button is present.
world
.
wait_for
(
lambda
_driver
:
world
.
css_visible
(
'a.edit-button'
))
world
.
wait_for
(
lambda
_driver
:
world
.
css_visible
(
'a.edit-button'
))
world
.
css_click
(
'a.edit-button'
,
index
)
world
.
css_click
(
'a.edit-button'
,
index
)
world
.
wait_for_ajax_complete
()
world
.
wait_for_ajax_complete
()
...
...
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