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
9e37786e
Commit
9e37786e
authored
Feb 10, 2016
by
Braden MacDonald
Committed by
Jonathan Piacenti
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests post-merge
parent
9aaaac39
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tests/integration/test_interaction.py
+2
-2
tests/integration/test_render.py
+5
-5
No files found.
tests/integration/test_interaction.py
View file @
9e37786e
...
@@ -616,7 +616,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
...
@@ -616,7 +616,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
Ensure that they are children of the zone.
Ensure that they are children of the zone.
"""
"""
# parent container has the expected alignment
# parent container has the expected alignment
item_wrapper_selector
=
"div[data-
zone
='{zone_id}'] .item-wrapper"
.
format
(
zone_id
=
zone_id
)
item_wrapper_selector
=
"div[data-
uid
='{zone_id}'] .item-wrapper"
.
format
(
zone_id
=
zone_id
)
self
.
assertEquals
(
self
.
_get_style
(
item_wrapper_selector
,
'textAlign'
),
align
)
self
.
assertEquals
(
self
.
_get_style
(
item_wrapper_selector
,
'textAlign'
),
align
)
# Items placed in zones with align setting are children of the zone
# Items placed in zones with align setting are children of the zone
...
@@ -651,7 +651,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
...
@@ -651,7 +651,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
"""
"""
zone_id
=
"Zone No Align"
zone_id
=
"Zone No Align"
self
.
place_item
(
0
,
zone_id
)
self
.
place_item
(
0
,
zone_id
)
zone_item_selector
=
"div[data-
zone
='{zone_id}'] .item-wrapper .option"
.
format
(
zone_id
=
zone_id
)
zone_item_selector
=
"div[data-
uid
='{zone_id}'] .item-wrapper .option"
.
format
(
zone_id
=
zone_id
)
self
.
assertEquals
(
len
(
self
.
_page
.
find_elements_by_css_selector
(
zone_item_selector
)),
0
)
self
.
assertEquals
(
len
(
self
.
_page
.
find_elements_by_css_selector
(
zone_item_selector
)),
0
)
target_item_selector
=
'.target > .option'
target_item_selector
=
'.target > .option'
...
...
tests/integration/test_render.py
View file @
9e37786e
...
@@ -284,11 +284,11 @@ class TestDragAndDropRenderZoneAlign(BaseIntegrationTest):
...
@@ -284,11 +284,11 @@ class TestDragAndDropRenderZoneAlign(BaseIntegrationTest):
def
test_zone_align
(
self
):
def
test_zone_align
(
self
):
expected_alignments
=
{
expected_alignments
=
{
"#-
zone-none
"
:
"start"
,
"#-
Zone_No_Align
"
:
"start"
,
"#-
zone-invalid
"
:
"start"
,
"#-
Zone_Invalid_Align
"
:
"start"
,
"#-
zone-left
"
:
"left"
,
"#-
Zone_Left_Align
"
:
"left"
,
"#-
zone-right
"
:
"right"
,
"#-
Zone_Right_Align
"
:
"right"
,
"#-
zone-center
"
:
"center"
"#-
Zone_Center_Align
"
:
"center"
}
}
for
zone_id
,
expected_alignment
in
expected_alignments
.
items
():
for
zone_id
,
expected_alignment
in
expected_alignments
.
items
():
selector
=
"{zone_id} .item-wrapper"
.
format
(
zone_id
=
zone_id
)
selector
=
"{zone_id} .item-wrapper"
.
format
(
zone_id
=
zone_id
)
...
...
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