approbationReviewAddReviewers
setTimeout 120000
open logout
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jsmith
clickAndWait link=Workflow
click //input[@id='startWorkflow:workflowDefinitionId:1']
click //input[@id='startWorkflow:lifeCycleDestinationStateTransition:0']
clickAndWait //input[@value='Start']
verifyTextPresent Approval workflow
verifyElementPresent link=Edit
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Summary
verifyTextPresent Project
verifyTextNotPresent Review
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Log out
type username jsmith
type password jsmith1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jsmith
clickAndWait link=Dashboard
clickAndWait link=testNote1
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] bre
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] Bree Van de Kaamp
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Verification
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Approval comment for bree #2
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for bree #2
verifyElementNotPresent link=Approve
verifyElementPresent //input[@value='Start the workflow']
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_0']
clickAndWait //input[@value='Start the workflow']
verifyElementPresent link=Approve
verifyElementPresent link=Reject
verifyTextPresent Select reviewers
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as bree
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Abandon workflow
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] lbramard
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] Lucien Bramard
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Verification
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] First approval comment for lbramard
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent First approval comment for lbramard
verifyElementPresent link=Approve
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_0']
clickAndWait link=Approve
verifyElementNotPresent link=Reject
verifyElementNotPresent link=Approve
verifyTextNotPresent Select reviewers
clickAndWait link=Log out
type username lbramard
type password lbramard1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as lbramard
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Abandon workflow
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] jdoe
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] John Doe
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Verification
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Approval comment for jdoe #2
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for jdoe #2
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_0']
clickAndWait link=Approve
verifyElementNotPresent link=Reject
verifyElementNotPresent link=Approve
verifyTextNotPresent Select reviewers
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Abandon workflow
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] jsmith
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] John Smith
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Verification
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Approval comment for jsmith
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for jsmith
clickAndWait //a[@id='reviewTasksTable:removeParticipant_0']/img
verifyTextNotPresent Approval comment for jsmith
assertConfirmation Delete the task?
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
select //select[@class='langSelect'] label=English (United Kingdom)
clickAndWait //input[@class='langSubmit']
verifyTextPresent You are logged as jsmith
clickAndWait link=Workflow
type //textarea[@id='abandonProcess:userWorkflowComment'] Abandon approval review #2
clickAndWait //input[@value='Abandon workflow']
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
verifyTextPresent Start a workflow
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty
clickAndWait link=testNote1
verifyTextPresent Project
clickAndWait link=testFolder1
verifyTextNotPresent Review
clickAndWait link=Log out