Skip to content

Commit

Permalink
Adds failing test for issue #351
Browse files Browse the repository at this point in the history
  • Loading branch information
href committed Nov 18, 2013
1 parent 2186108 commit 54984e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/collective/cover/tests/test_list_tile.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 54984e1

Please sign in to comment.