From 54984e1acffc0852e570cbc99adbd7407bc7c75a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Krienb=C3=BChl?= Date: Mon, 18 Nov 2013 11:33:18 +0100 Subject: [PATCH] Adds failing test for issue #351 --- .../cover/tests/test_list_tile.robot | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/collective/cover/tests/test_list_tile.robot b/src/collective/cover/tests/test_list_tile.robot index d3037caca..fb0077b5b 100644 --- a/src/collective/cover/tests/test_list_tile.robot +++ b/src/collective/cover/tests/test_list_tile.robot @@ -16,6 +16,9 @@ ${link_selector} .ui-draggable .contenttype-link ${news-item_selector} .ui-draggable .contenttype-news-item ${tile_selector} div.tile-container div.tile +${first_item} .list-item:first-child +${last_item} .list-item:last-child + *** Test cases *** Test List Tile @@ -67,6 +70,25 @@ Test List Tile Page Should Contain Test link Page Should Contain Test news item + # reorder list items + Compose Cover + + # check the existing order + ${first_item_title} = Get Text css=${first_item} h2 + ${last_item_title} = Get Text css=${last_item} h2 + Should Be Equal ${first_item_title} My document + Should Be Equal ${last_item_title} Test news item + + # move first item to the end + Drag And Drop css=${first_item} css=${last_item} + Sleep 1s Wait for reordering to occur + + # ensure that the reodering is reflected in the DOM + ${first_item_title} = Get Text css=${first_item} h2 + ${last_item_title} = Get Text css=${last_item} h2 + Should Be Equal ${first_item_title} My file + Should Be Equal ${last_item_title} My document + # delete the tile Edit Cover Layout Delete Tile