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
ea3b1534
Commit
ea3b1534
authored
Dec 20, 2016
by
Matjaz Gregoric
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tag type from test selectors.
parent
ab28cb89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tests/integration/test_base.py
+2
-2
tests/integration/test_title_and_question.py
+2
-2
No files found.
tests/integration/test_base.py
View file @
ea3b1534
...
@@ -48,7 +48,7 @@ ItemDefinition = namedtuple( # pylint: disable=invalid-name
...
@@ -48,7 +48,7 @@ ItemDefinition = namedtuple( # pylint: disable=invalid-name
class
BaseIntegrationTest
(
SeleniumBaseTest
):
class
BaseIntegrationTest
(
SeleniumBaseTest
):
default_css_selector
=
'
div
.themed-xblock.xblock--drag-and-drop'
default_css_selector
=
'.themed-xblock.xblock--drag-and-drop'
module_name
=
__name__
module_name
=
__name__
_additional_escapes
=
{
_additional_escapes
=
{
...
@@ -346,7 +346,7 @@ class InteractionTestBase(object):
...
@@ -346,7 +346,7 @@ class InteractionTestBase(object):
both the HTML attribute and the DOM property are set to false.
both the HTML attribute and the DOM property are set to false.
We work around that selenium bug by using JavaScript to get the correct value of 'draggable'.
We work around that selenium bug by using JavaScript to get the correct value of 'draggable'.
"""
"""
script
=
"return $('
div
.option[data-value={}]').prop('draggable')"
.
format
(
item_value
)
script
=
"return $('.option[data-value={}]').prop('draggable')"
.
format
(
item_value
)
return
self
.
browser
.
execute_script
(
script
)
return
self
.
browser
.
execute_script
(
script
)
def
assertDraggable
(
self
,
item_value
):
def
assertDraggable
(
self
,
item_value
):
...
...
tests/integration/test_title_and_question.py
View file @
ea3b1534
...
@@ -26,10 +26,10 @@ class TestDragAndDropTitleAndProblem(BaseIntegrationTest):
...
@@ -26,10 +26,10 @@ class TestDragAndDropTitleAndProblem(BaseIntegrationTest):
self
.
addCleanup
(
scenarios
.
remove_scenario
,
const_page_id
)
self
.
addCleanup
(
scenarios
.
remove_scenario
,
const_page_id
)
page
=
self
.
go_to_page
(
const_page_name
)
page
=
self
.
go_to_page
(
const_page_name
)
is_problem_header_visible
=
len
(
page
.
find_elements_by_css_selector
(
'
div
.problem > h4'
))
>
0
is_problem_header_visible
=
len
(
page
.
find_elements_by_css_selector
(
'.problem > h4'
))
>
0
self
.
assertEqual
(
is_problem_header_visible
,
show_problem_header
)
self
.
assertEqual
(
is_problem_header_visible
,
show_problem_header
)
problem
=
page
.
find_element_by_css_selector
(
'
div
.problem > p'
)
problem
=
page
.
find_element_by_css_selector
(
'.problem > p'
)
self
.
assertEqual
(
self
.
get_element_html
(
problem
),
problem_text
)
self
.
assertEqual
(
self
.
get_element_html
(
problem
),
problem_text
)
@unpack
@unpack
...
...
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