Skip to content

Commit

Permalink
add a robot test for "Allow anyone to view 'about' information"
Browse files Browse the repository at this point in the history
We are testing on the search view, since author info currently appears
only on search and listing views, not on document view etc.. See
also #337.
  • Loading branch information
jcerjak committed Jan 26, 2015
1 parent 133aef6 commit cd8b461
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Products/CMFPlone/tests/robot/test_controlpanel_security.robot
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Scenario: Enable user folders in the Security Control Panel
When I enable user folders
Then a user folder should be created when a user registers and logs in to the site

Scenario: Enable anyone to view 'about' information in the Security Control Panel
Given a logged-in site administrator
and a published test folder
and the security control panel
When I enable anyone to view 'about' information
Then anonymous users can view 'about' information

Scenario: Enable use email as login in the Security Control Panel
Given a logged-in site administrator
and the security control panel
Expand All @@ -54,6 +61,12 @@ a logged-in site administrator
the security control panel
Go to ${PLONE_URL}/@@security-controlpanel

a published test folder
Go to ${PLONE_URL}/robot-test-folder
Click link xpath=//li[@id='plone-contentmenu-workflow']/a
Wait until element is visible id=workflow-transition-publish
Click link id=workflow-transition-publish
Wait until page contains Item state changed

# --- WHEN -------------------------------------------------------------------

Expand All @@ -75,6 +88,11 @@ I enable user folders
Click Button Save
Wait until page contains Changes saved

I enable anyone to view 'about' information
Select Checkbox form.widgets.allow_anon_views_about:list
Click Button Save
Wait until page contains Changes saved

I enable email to be used as a login name
Select Checkbox form.widgets.enable_self_reg:list
Select Checkbox form.widgets.enable_user_pwd_choice:list
Expand Down Expand Up @@ -132,6 +150,11 @@ A user folder should be created when a user registers and logs in to the site
Element Should Contain css=h1.documentFirstHeading joe
Page should Not contain This page does not seem to exist

Anonymous users can view 'about' information
Disable autologin
Go to ${PLONE_URL}/@@search?SearchableText=test
Element Should Be Visible xpath=//span[contains(@class, 'documentAuthor')]

UUID should be used for the user id

Disable autologin
Expand Down

0 comments on commit cd8b461

Please sign in to comment.