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
436d46f8
Commit
436d46f8
authored
Feb 10, 2016
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests post-merge
parent
f7baf7a5
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 @
436d46f8
...
...
@@ -616,7 +616,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
Ensure that they are children of the zone.
"""
# 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
)
# Items placed in zones with align setting are children of the zone
...
...
@@ -651,7 +651,7 @@ class ZoneAlignInteractionTest(InteractionTestBase, BaseIntegrationTest):
"""
zone_id
=
"Zone No Align"
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
)
target_item_selector
=
'.target > .option'
...
...
tests/integration/test_render.py
View file @
436d46f8
...
...
@@ -284,11 +284,11 @@ class TestDragAndDropRenderZoneAlign(BaseIntegrationTest):
def
test_zone_align
(
self
):
expected_alignments
=
{
"#-
zone-none
"
:
"start"
,
"#-
zone-invalid
"
:
"start"
,
"#-
zone-left
"
:
"left"
,
"#-
zone-right
"
:
"right"
,
"#-
zone-center
"
:
"center"
"#-
Zone_No_Align
"
:
"start"
,
"#-
Zone_Invalid_Align
"
:
"start"
,
"#-
Zone_Left_Align
"
:
"left"
,
"#-
Zone_Right_Align
"
:
"right"
,
"#-
Zone_Center_Align
"
:
"center"
}
for
zone_id
,
expected_alignment
in
expected_alignments
.
items
():
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