-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
*** Settings *** | ||
|
||
Resource plone/app/robotframework/keywords.robot | ||
Variables plone/app/testing/interfaces.py | ||
Library Remote ${PLONE_URL}/RobotRemote | ||
|
||
*** Variables *** | ||
|
||
${title_selector} = input#title | ||
${facebook_locator} css=#viewlet-social-like .sociallike-network-facebook | ||
|
||
*** Test cases *** | ||
|
||
Test Hide Unpublished | ||
Open Test Browser | ||
Enable Autologin as Site Administrator | ||
Go to Homepage | ||
Create Document Extra! Extra! | ||
Element Should Not Be Visible ${facebook_locator} | ||
Publish Content | ||
Wait until keyword succeeds 1 5 Element Should Be Visible ${facebook_locator} | ||
Close all browsers | ||
|
||
*** Keywords *** | ||
|
||
Click Add Document | ||
Open Add New Menu | ||
Click Link css=a#document | ||
Page Should Contain Add Page | ||
|
||
Create Document | ||
[arguments] ${title} | ||
|
||
Click Add Document | ||
Input Text css=${title_selector} ${title} | ||
Click Button Save | ||
Page Should Contain Changes saved. | ||
|
||
Open Workflow Menu | ||
Open Menu plone-contentmenu-workflow | ||
|
||
Publish Content | ||
Open Workflow Menu | ||
Click Link css=a#workflow-transition-publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters