edit-project-dashboards
open /sessions/login
type login admin
type password admin
clickAndWait commit
open /dashboards?resource=sample
click create-link-dashboard
waitForVisible css=div.modal-head > h2
type name=name Project Shared
click name=shared
clickAndWait id=save-submit
click create-link-dashboard
waitForVisible css=div.modal-head > h2
type name=name Project Not Shared
clickAndWait id=save-submit
waitForTextPresent My Project Dashboards
clickAndWait id=unfollow-Project%20Shared
clickAndWait id=unfollow-Project%20Not%20Shared
assertTable id=shared-dashboards.1.0 Project Not Shared
assertTable id=shared-dashboards.2.0 Project Shared
assertElementPresent id=follow-Project%20Shared
assertElementPresent id=follow-Project%20Not%20Shared
click id=edit-Project%20Shared
waitForVisible css=div.modal-head > h2
type name=description Description Shared
clickAndWait id=save-submit
waitForTextPresent Description Shared
click id=edit-Project%20Not%20Shared
waitForVisible css=div.modal-head > h2
type name=description Description Not Shared
clickAndWait id=save-submit
waitForTextPresent Description Not Shared
click id=delete-Project%20Shared
waitForVisible css=div.modal-head > h2
waitForText css=.modal-body Do you want to delete this dashboard?
click confirm-submit
waitForElementNotPresent confirm-submit
waitForVisible delete-Project%20Not%20Shared
click delete-Project%20Not%20Shared
waitForVisible css=div.modal-head > h2
waitForText css=.modal-body Do you want to delete this dashboard?
click confirm-submit
waitForElementNotPresent confirm-submit