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(3) > .usa-alert-body > h3.usa-alert-heading |
|
assertText |
css=.col > .usa-alert.usa-alert-info:nth-of-type(3) > .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.* |