Add CCPO User
waitForPageToLoad
open /login-dev?username=brandon
waitForPageToLoad
waitForElementPresent css=a[href="/user"] > .topbar__link-label
assertText css=a[href="/user"] > .topbar__link-label *Brandon Buchannan*
waitForPageToLoad
waitForElementPresent css=a[href="/logout"] > .topbar__link-label
click css=a[href="/logout"] > .topbar__link-label
waitForPageToLoad
waitForElementPresent css=.col > .usa-alert.usa-alert-info:nth-of-type(2) > .usa-alert-body > h3.usa-alert-heading
assertText css=.col > .usa-alert.usa-alert-info:nth-of-type(2) > .usa-alert-body > h3.usa-alert-heading *Logged out*
waitForPageToLoad
open /login-dev?username=sam
waitForPageToLoad
waitForElementPresent css=a[href="/user"] > .topbar__link-label
assertText css=a[href="/user"] > .topbar__link-label *Sam Stevenson*
waitForPageToLoad
open /ccpo-users
waitForPageToLoad
waitForElementPresent css=.h2
assertText css=.h2 *CCPO Users*
waitForPageToLoad
waitForElementPresent css=a[href="/ccpo-users/new"]
click css=a[href="/ccpo-users/new"]
waitForPageToLoad
waitForElementPresent css=#add-ccpo-user-form > h1
assertText css=#add-ccpo-user-form > h1 *Add new CCPO user*
waitForPageToLoad
waitForElementPresent css=#dod_id
type css=#dod_id 3456789012
waitForPageToLoad
waitForElementPresent css=input[type="submit"]
click css=input[type="submit"]
waitForPageToLoad
waitForElementPresent css=.global-panel-container > h3
assertText css=.global-panel-container > h3 *Confirm new CCPO user*
waitForPageToLoad
waitForElementPresent css=input[type="submit"]
click css=input[type="submit"]
waitForPageToLoad
waitForElementPresent css=.usa-alert.usa-alert-success > .usa-alert-body > .usa-alert-text
assertText css=.usa-alert.usa-alert-success > .usa-alert-body > .usa-alert-text *You have successfully given Brandon Buchannan CCPO permissions.*
waitForPageToLoad
waitForElementPresent css=.col > table > tbody > tr:nth-of-type(1) > td:nth-of-type(1)
assertText css=.col > table > tbody > tr:nth-of-type(1) > td:nth-of-type(1) *Brandon Buchannan*
waitForPageToLoad
waitForElementPresent css=a.usa-button.button-danger-outline
assertElementPresent css=a.usa-button.button-danger-outline
waitForPageToLoad
waitForElementPresent css=.global-panel-container > div:nth-of-type(2) > .modal > .modal__container > .modal__dialog > .modal__body > div:nth-of-type(2) > .action-group > a.action-group__action.icon-link.icon-link--default
assertElementPresent css=.global-panel-container > div:nth-of-type(2) > .modal > .modal__container > .modal__dialog > .modal__body > div:nth-of-type(2) > .action-group > a.action-group__action.icon-link.icon-link--default