Commit 436d46f8 by Braden MacDonald

Fix tests post-merge

parent f7baf7a5
...@@ -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'
......
...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment