Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
a5858aaf
Commit
a5858aaf
authored
Dec 02, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests that were failing prior to changes in previous commit.
parent
7a42ee57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
tests/integration/test_base.py
+3
-0
tests/integration/test_interaction.py
+3
-1
No files found.
tests/integration/test_base.py
View file @
a5858aaf
...
...
@@ -50,6 +50,9 @@ class BaseIntegrationTest(SeleniumBaseTest):
def
_get_feedback_message
(
self
):
return
self
.
_page
.
find_element_by_css_selector
(
".feedback .message"
)
def
scroll_down
(
self
,
pixels
=
50
):
self
.
browser
.
execute_script
(
"$(window).scrollTop({})"
.
format
(
pixels
))
def
get_element_html
(
self
,
element
):
return
element
.
get_attribute
(
'innerHTML'
)
.
strip
()
...
...
tests/integration/test_interaction.py
View file @
a5858aaf
...
...
@@ -129,9 +129,11 @@ class InteractionTestFixture(BaseIntegrationTest):
input_div
=
self
.
_get_input_div_by_value
(
item_key
)
self
.
wait_until_has_class
(
'correct'
,
input_div
)
self
.
wait_until_exists
(
'.reset-button'
)
self
.
wait_until_html_in
(
self
.
feedback
[
'final'
],
self
.
_get_feedback_message
())
# Scroll "Reset exercise" button into view to make sure Selenium can successfully click it
self
.
scroll_down
()
reset
=
self
.
_page
.
find_element_by_css_selector
(
'.reset-button'
)
reset
.
click
()
...
...
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