manageRightsInSectionsByManager
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium manageRightsInSectionsByManager
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Sections
verifyElementPresent link=Create a New Section
clickAndWait link=Permissions
waitForElementPresent //div[contains(@class, 'jsLocalPermissions')]/*/paper-button
click //div[contains(@class, 'jsLocalPermissions')]/*/paper-button
waitForTextPresent Add a Permission
forceSelectPermissionUsername bree
click //h2[text()='Add a Permission']/..//paper-item[text()='Read']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
click //paper-button[text()='New']
waitForTextPresent Add a Permission
forceSelectPermissionUsername jsmith
click //h2[text()='Add a Permission']/..//paper-item[text()='Edit']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
click //paper-button[text()='New']
waitForTextPresent Add a Permission
forceSelectPermissionUsername jsmith
click //h2[text()='Add a Permission']/..//paper-item[text()='Can ask for publishing']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
click //paper-button[text()='New']
waitForTextPresent Add a Permission
forceSelectPermissionUsername lbramard
click //h2[text()='Add a Permission']/..//paper-item[text()='Read']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
click //paper-button[text()='New']
waitForTextPresent Add a Permission
forceSelectPermissionUsername linnet
click //h2[text()='Add a Permission']/..//paper-item[text()='Read']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
click //paper-button[text()='New']
waitForTextPresent Add a Permission
forceSelectPermissionUsername linnet
click //h2[text()='Add a Permission']/..//paper-item[text()='Can ask for publishing']
click //h2[text()='Add a Permission']/..//paper-button[text()='Create']
waitForTextNotPresent Add a Permission
clickAndWait link=Log Out