testMultipleDomainsDashboard
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium testMultipleDomainsDashboard
open logout
open nxpath/default@view_domains
type username jdoe
type password jdoe1
clickAndWait Submit
verifyElementPresent link=Domain
verifyElementNotPresent link=New domain
verifyElementPresent link=Home
clickAndWait link=Home
storeLocation dashboardLocation
echo javascript{storedVars.dashboardLocation}
verifyElementPresent link=My Workspaces
verifyElementPresent link=testWorkspace1
verifyElementPresent link=testWorkspace2
verifyElementPresent link=Last Modified Documents
verifyElementPresent link=testTopicWithoutModeration
verifyElementPresent link=testTopicWithModeration
open logout
open nxpath/default@view_domains
type username Administrator
type password Administrator
clickAndWait Submit
clickAndWait link=Create a New Domain
type //td[@class="fieldColumn"]/input[@type="text"] New domain
clickAndWait //input[@value='Create']
clickAndWait link=Workspaces
clickAndWait link=Create a New Workspace
type document_create:nxl_heading:nxw_title test workspace in new domain
clickAndWait //input[@value='Create']
click link=New
waitForTextPresent Available Document Types
clickAndWait link=File
type document_create:nxl_heading:nxw_title Administrator's file in new domain
clickAndWait document_create:nxw_documentCreateButtons_CREATE_DOCUMENT
open logout
open nxpath/default@view_domains
type username jdoe
type password jdoe1
clickAndWait Submit
verifyElementPresent link=Domain
verifyElementPresent link=New domain
verifyElementPresent link=Home
clickAndWait link=Home
verifyTextPresent Select the domain
select selectDashboardDomain:selectDashboardDomainMenu label=New domain
clickAndWait selectDashboardDomain:dashboardDomainSubmitButton
verifyElementPresent link=test workspace in new domain
verifyElementNotPresent link=testTopicWithoutModeration
verifyElementNotPresent link=testTopicWithModeration
verifyElementPresent link=Last Modified Documents
verifyElementPresent link=Administrator's file in new domain
select selectDashboardDomain:selectDashboardDomainMenu label=Domain
clickAndWait selectDashboardDomain:dashboardDomainSubmitButton
verifyElementPresent link=John Doe
verifyElementPresent link=testWorkspace1
verifyElementPresent link=testWorkspace2
verifyElementNotPresent link=test workspace in new domain
verifyElementPresent link=Last Modified Documents
verifyElementPresent link=testTopicWithoutModeration
verifyElementPresent link=testTopicWithModeration
verifyElementNotPresent link=Administrator's file in new domain
open logout
open nxpath/default@view_domains
type username Administrator
type password Administrator
clickAndWait Submit
verifyElementPresent link=Domain
verifyElementPresent link=New domain
assertText //form[@id='document_content']//table/tbody/tr[2]/td[3] New domain
click //form[@id='document_content']//table/tbody/tr[2]/td[1]//input
waitForEditable document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH
clickAndWait document_content_buttons:nxw_CURRENT_SELECTION_TRASH_form:nxw_CURRENT_SELECTION_TRASH
assertConfirmation Delete selected document(s)?
verifyElementPresent link=Domain
verifyElementNotPresent link=New domain
open logout