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
29c8a0e2
Commit
29c8a0e2
authored
Nov 20, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1722 from edx/will/fix-html-failure
Increased timeout for element count in HTML test
parents
bc4ebfdc
bcb5f1b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+5
-10
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
29c8a0e2
...
...
@@ -6,14 +6,6 @@ from nose.tools import assert_equal, assert_in # pylint: disable=E0611
from
terrain.steps
import
reload_the_page
def
_is_expected_element_count
(
css
,
expected_number
):
"""
Returns whether the number of elements found on the page by css locator
the same number that you expected.
"""
return
len
(
world
.
css_find
(
css
))
==
expected_number
@world.absorb
def
create_component_instance
(
step
,
category
,
component_type
=
None
,
is_advanced
=
False
):
"""
...
...
@@ -47,8 +39,11 @@ def create_component_instance(step, category, component_type=None, is_advanced=F
world
.
wait_for_invisible
(
component_button_css
)
click_component_from_menu
(
category
,
component_type
,
is_advanced
)
world
.
wait_for
(
lambda
_
:
_is_expected_element_count
(
module_css
,
module_count_before
+
1
))
expected_count
=
module_count_before
+
1
world
.
wait_for
(
lambda
_
:
len
(
world
.
css_find
(
module_css
))
==
expected_count
,
timeout
=
20
)
@world.absorb
...
...
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