unpublishBySectionWriter
open /nuxeo/logout
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=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
verifyNotEditable //input[@value="Unpublish"]
click //input[@title="Select all / deselect all"]
verifyChecked //input[@title="Select all / deselect all"]
verifyChecked //tr[@class="dataRowOdd"]//input[@type="checkbox"]
verifyChecked //tr[@class="dataRowEven"]//input[@type="checkbox"]
waitForEditable //input[@value="Unpublish"] 15000
clickAndWait //input[@value="Unpublish"]
verifyElementNotPresent link=test to be publish 1
verifyElementNotPresent link=test to be publish 2
verifyTextPresent This folder contains no document
clickAndWait link=Workspaces
clickAndWait link=testWorskspace1
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 1
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 2
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
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=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
verifyElementNotPresent link=test file to be publish 1
verifyElementNotPresent link=test file to be publish 2
clickAndWait link=Workspaces
clickAndWait link=testWorskspace1
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 1
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 2
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
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=Sections
clickAndWait link=testSection1
clickAndWait link=testSection2
verifyElementNotPresent link=testNote1
verifyElementNotPresent link=Note to be modified
clickAndWait link=Workspaces
clickAndWait link=testWorskspace1
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 1
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
clickAndWait link=testFolder1
clickAndWait link=test file to be publish 2
clickAndWait link=Publish
verifyElementNotPresent link=Default domain>Sections>testSection1
verifyElementNotPresent link=Default domain>Sections>testSection1>testSection2
clickAndWait link=Log out