# ============================================================================
# CONTENT SEARCH
# ============================================================================
#
# Run this robot test stand-alone:
#
#  $ bin/test -s vncportal.policy -t stream_search.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/stream_search.robot
#
# See the http://docs.plone.org for further details (search for robot
# framework).
#
# ============================================================================

*** Variables ***


*** Settings ***

Resource  keywords.robot

Test Setup  Test Setup
Test Teardown  Close browser


*** Test Cases ***

Scenario: As a logged in user I can search for a content object in the stream
   Given a logged in user
     and a document with the title 'My Document'
    When I search for 'Document' in the stream view
    Then I should see 'My Document' in the search results page


*** Keywords ***

# Given
a document with the title 'My Document'
  No operation

# When
I search for 'Document' in the stream view
  No operation

# Then
I should see 'My Document' in the search results page
  No operation
