Created
September 22, 2012 14:12
-
-
Save tisto/3766288 to your computer and use it in GitHub Desktop.
p.a.toolbar act
This file contains hidden or 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
*** Settings *** | |
Resource plone/act/keyword.txt | |
*** Test cases *** | |
Anonymous shouldn't see toolbar | |
Log out | |
Page Should Not Contain Element id=plone-toolbar | |
Logged in should see toolbar | |
Toolbar Log in test-user secret | |
#Log in as site owner | |
Page Should Contain Element id=plone-toolbar | |
Edit page | |
Toolbar Log in test-user secret | |
Click the edit button in the toolbar | |
url = edit | |
edit code is not loaded in toolbar frame | |
edit code is loaded in content frame | |
Rename page | |
Login | |
Go to page | |
Click menu actions | |
Click item rename | |
Overlay should open in admin frame | |
content frame = "main" frame | |
admin frame = p.a.toolbar top frame | |
*** Keywords *** | |
Toolbar Log in | |
[Arguments] ${userid} ${password} | |
Go to ${PLONE_URL}/login_form | |
Page should contain element __ac_name | |
Input text __ac_name ${userid} | |
Input text __ac_password ${password} | |
Click Button Log in | |
#Page should contain element css=#user-name | |
Go to ${PLONE_URL} | |
[Return] True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment