Skip to content

Commit

Permalink
Testing issue #59
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Pablo Giménez committed Apr 19, 2013
1 parent 116c57c commit 5995f6b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/collective/cover/testing.py
Expand Up @@ -83,6 +83,12 @@ def setUpZope(self, app, configurationContext):
#self.loadZCML(package=plone.app.imagetile)
#import plone.app.texttile
#self.loadZCML(package=plone.app.imagetile)
if 'virtual_hosting' not in app.objectIds():
# If ZopeLite was imported, we have no default virtual
# host monster
from Products.SiteAccess.VirtualHostMonster \
import manage_addVirtualHostMonster
manage_addVirtualHostMonster(app, 'virtual_hosting')

def setUpPloneSite(self, portal):
# Install into Plone site using portal_setup
Expand Down
1 change: 1 addition & 0 deletions src/collective/cover/tests/test_acceptance.py
Expand Up @@ -22,6 +22,7 @@
'test_layout.txt',
'test_list_tile.txt',
'test_locked_cover.txt',
'test_issue_59.txt',
]

# FIXME: test randomly failing under Plone 4.3.x
Expand Down
46 changes: 46 additions & 0 deletions src/collective/cover/tests/test_issue_59.txt
@@ -0,0 +1,46 @@
*** Settings ***

Library Selenium2Library timeout=5 seconds implicit_wait=3 seconds
Resource keywords.txt
Resource cover_keywords.txt
Variables plone/app/testing/interfaces.py

Suite Setup Start Browser and Log In
Suite Teardown Close Browser

*** Variables ***

${basic_tile_location} /html/body/div/div[2]/div/div[2]/div[2]/div[3]/div
${basic_uuid} 12345
${document_selector} .ui-draggable .contenttype-document
${file_selector} .ui-draggable .contenttype-file
${image_selector} .ui-draggable .contenttype-image
${link_selector} .ui-draggable .contenttype-link
${tile_selector} div.tile-container div.tile
${news_item_selector} .ui-draggable .contenttype-news-item
${news_item_title} Test news item
${news_item_description} This news item was created for testing purposes

*** Test cases ***

Test issue_59
Create Cover Title Description Empty layout
Click Link link=Layout

Add Tile
Select Tile to Add ${basic_tile_location}
Save Cover Layout

Click Link link=Compose
Page Should Contain Please drag&drop some content here to populate the tile.

Open Browser http://localhost:${PORT}/VirtualHostBase/http/127.0.0.1:${PORT}/plone/VirtualHostRoot/_vh_subplone/title-1
Page Should Contain Please drag&drop some content here to populate the tile.

Switch Browser 1
Click Link link=Layout
Delete Tile
Save Cover Layout

Switch Browser 2
Close Browser

0 comments on commit 5995f6b

Please sign in to comment.