Skip to content

Commit

Permalink
Added tests for row and column classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Apr 23, 2015
1 parent 1c3c5c2 commit d5db79d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
1.0a11 (unreleased)
^^^^^^^^^^^^^^^^^^^

- Add custom classes for row and columns (closes `#504`_).
[rodfersou]

- Fix the carousel compose edit widget when items have been added that are now expired.
List the items with a red border and a warning text.
This only fixes listing expired content for non-managers (like using having the Editor rol) in compose mode, it doesn't change visibility of items when viewing.
Expand Down
20 changes: 19 additions & 1 deletion src/collective/cover/tests/test_layout.robot
Expand Up @@ -81,8 +81,27 @@ Test Basic Layout Operations
# Hide Description
Click Element css=#formfield-collective-cover-basic-description .visibility-no
Click Button id=buttons-save
# Change row class
Click Element css=.config-row-link:nth-child(1)
Wait until element is visible id=class-chooser
Select From List css=#class-chooser select Shadow
Click Element css=.ui-dialog:last-child .ui-dialog-titlebar-close
# Change column class
Click Element css=.config-column-link:nth-child(1)
Wait until element is visible id=class-chooser
Select From List css=#class-chooser select Border
Click Element css=.ui-dialog:last-child .ui-dialog-titlebar-close
Save Cover Layout

# Test row and column classes
Compose Cover
Page Should Contain Element css=.row.tile-shadow
Page Should Contain Element css=.cell.tile-edge
Click Link link=View
Page Should Contain Element css=.row.tile-shadow
Page Should Contain Element css=.cell.tile-edge


# Reopen Layout and check configuration
Edit Cover Layout
Click Config from Tile ${tile_class}
Expand Down Expand Up @@ -144,4 +163,3 @@ Click Config from Tile
[arguments] ${tile}

Click Element css=${tile} .config-tile-link

0 comments on commit d5db79d

Please sign in to comment.