# ============================================================================
# CONTENT WORKFLOW
# ============================================================================
#
# Run this robot test stand-alone:
#
#  $ bin/test -s vncportal.policy -t content.robot --all
#
# Run this robot test with robot server (which is faster):
#
# 1) Start robot server:
#
# $ bin/robot-server --reload-path src vncportal.policy.testing.VNCPORTAL_POLICY_ACCEPTANCE_TESTING
#
# 2) Run robot tests:
#
# $ bin/robot src/vncportal.policy/src/vncportal/policy/tests/robot/content_workflow.robot
#
# See the http://docs.plone.org for further details (search for robot
# framework).
#
# ============================================================================

Scenario: Reviewer can change the workflow state of a document
   Given a logged in reviewer
     and a document in the private state with the default workflow enabled
    When I change the workflow to published
    Then the document is published
     and can be viewed by an anonymous user

Scenario: User can set a publish date on a content object
   Given a logged in user
     and a document
    When I set the publish date to tomorrow
     and I set the current date to tomorrow
    Then the document is in the published workflow state  # XXX: or just viewable?

Scenario: User can set an expiration date on a content object
   Given a logged in user
     and a document
    When I set the expiration date to tomorrow
     and I set the current date to tomorrow
    Then the document is in the private workflow state  # XXX: or just not viewable?
