open |
restAPI/systemLog?token=dolog&level=INFO&message=-----Selenium createRestrictedNews |
|
setTimeout |
120000 |
|
open |
logout |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
clickAndWait |
//form[@id='document_content']/table/tbody/tr/td[3]/div/a[1] |
|
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=News |
|
clickAndWait |
link=Create a News Item |
|
type |
//*[@id="document_create:nxl_social_document_heading:nxw_title"] |
News for test |
type |
//*[@id="document_create:nxl_social_document_heading:nxw_required_description"] |
description for test |
select |
//*[contains(@id,"nxw_social_document_content_editorselector")] |
label=Text |
type |
//*[contains(@id,"nxw_social_document_content_editor")] |
And now the content of the news |
clickAndWait |
//*[@id="document_create:create_doc_CREATE_DOCUMENT"] |
|
open |
/nuxeo/nxpath/default/collaboration/SocialWorkspaceForNews@view_documents |
|
clickAndWait |
link=Private dashboard |
|
waitForElementPresent |
//*[@id='nxDocumentListData']/div/p |
|
verifyText |
//*[@id='nxDocumentListData']/div/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//*[@id='nxDocumentListData']/div/p/a |
News for test |
verifyText |
//*[@id='nxDocumentListData']/div/p[2] |
description for test |
open |
logout |
|
type |
username |
SocialWorkspaceMember |
type |
password |
pwd |
clickAndWait |
Submit |
|
clickAndWait |
link=Home |
|
waitForOpensocialGadgetsToLoad |
nxDocumentListData,content |
60000 |
selectOpenSocialGadgetFrame |
news |
|
verifyText |
//div/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//div/p/a |
News for test |
verifyText |
//div/p[2] |
description for test |
selectWindow |
null |
|
selectOpenSocialGadgetFrame |
usersocialworkspaces |
|
verifyText |
//div[@id="nxDocumentListData"]/table/tbody/tr/td[2]/a |
SocialWorkspaceForDashboardView |
verifyText |
//div[@id="nxDocumentListData"]/table/tbody/tr/td[4] |
Administrator |
verifyText |
//div[@id="nxDocumentListData"]/table/tbody/tr[2]/td[2]/a |
SocialWorkspaceForNews |
verifyText |
//div[@id="nxDocumentListData"]/table/tbody/tr[2]/td[4] |
Administrator |
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=Go to News items |
|
verifyTextPresent |
News for test |
|
verifyTextNotPresent |
Delete |
|
verifyTextNotPresent |
Edit |
|
verifyTextNotPresent |
Restrict to the social workspace |
|
verifyTextNotPresent |
make it public |
|