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=Default 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 document_create:create_doc_CREATE_WORKSPACE
mouseDown link=New
clickAndWait link=File
type document_create:nxl_heading:nxw_title Administrator's file in new domain
clickAndWait document_create:create_doc_CREATE_DOCUMENT
open logout
open nxpath/default@view_domains
type username jdoe
type password jdoe1
clickAndWait Submit
verifyElementPresent link=Default domain
verifyElementPresent link=New domain
verifyElementPresent link=Home
clickAndWait link=Home
verifyTextPresent Select the domain
select selectDashboardDomain:selectDashboardDomainMenu label=New domain
clickAndWait selectDashboardDomain:dashboardDomainSubmitButton
verifyElementNotPresent link=testWorkspace1
verifyElementNotPresent link=testWorkspace2
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=Default domain
clickAndWait selectDashboardDomain:dashboardDomainSubmitButton
verifyElementPresent link=jdoe
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=Default 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:clipboardActionsTable_0_0:3:clipboardActionsButton
clickAndWait document_content:clipboardActionsTable_0_0:3:clipboardActionsButton
assertConfirmation Delete selected document(s)?
verifyElementPresent link=Default domain
verifyElementNotPresent link=New domain
open logout