*** Settings ***

Library  Selenium2Library  timeout=10  implicit_wait=0.5  run_on_failure=Capture Page Screenshot

Resource  prettyphoto_keywords.txt

Variables  plone/app/testing/interfaces.py
Variables  collective/prettyphoto/tests/variables.py

Suite Setup  Suite Setup
Suite Teardown  Suite Teardown

*** Variables ***

${front-page}       http://localhost:55001/plone/
${test-folder}      http://localhost:55001/plone/test-folder
${test-collection}  http://localhost:55001/plone/test-collection

${PORT} =  55001
${ZOPE_URL} =  http://localhost:${PORT}
${PLONE_URL} =  ${ZOPE_URL}/plone
${BROWSER} =  Firefox


*** Test Cases ***

Test prettyPhoto gallery on a folder
    Log in as site owner
    Go to  ${test-folder}
    Add image  Napoli  plone-people-pointing.jpg
    Go to  ${test-folder}
    Add image  Munich  plone-konferenz-2012.jpg
    Go to  ${test-folder}
    Apply prettyPhoto View
    Log out
    Go to  ${test-folder}
    Open prettyPhoto Gallery
    Click On Next In prettyPhoto Gallery
    Be Sure prettyPhoto Shows Image  munich  Munich
    Click On Previous In prettyPhoto Gallery
    Be Sure prettyPhoto Shows Image  napoli  Napoli
    Close prettyPhoto Gallery
