Remove Portfolio Member
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
waitForPageToLoad
waitForElementPresent css=.home__content > h1
assertText css=.home__content > h1 JEDI Cloud Services
waitForPageToLoad
waitForElementPresent css=a[href="/portfolios/new"]
click css=a[href="/portfolios/new"]
waitForPageToLoad
waitForElementPresent css=.portfolio-header__name > h1
assertText css=.portfolio-header__name > h1 *New Portfolio*
waitForPageToLoad
waitForElementPresent css=.sticky-cta-text > h3
assertText css=.sticky-cta-text > h3 *Create New Portfolio*
waitForPageToLoad
waitForElementPresent css=#name
type css=#name Tatooine Energy Maintenance Systems
waitForPageToLoad
waitForElementPresent css=fieldset.usa-input__choices > ul > li:nth-of-type(5) > label
click css=fieldset.usa-input__choices > ul > li:nth-of-type(5) > label
waitForPageToLoad
waitForElementPresent css=input[type="submit"]
click css=input[type="submit"]
waitForPageToLoad
waitForElementPresent css=.empty-state > h3
assertText css=.empty-state > h3 *You don't have any Applications yet*
waitForPageToLoad
waitForElementPresent css=.icon.icon--cog > svg
click css=.icon.icon--cog > svg
waitForPageToLoad
waitForElementPresent css=.portfolio-header__name > h1
assertText css=.portfolio-header__name > h1 *Tatooine Energy Maintenance Systems*
waitForPageToLoad
waitForElementPresent css=.panel__content > p:nth-of-type(2)
assertElementPresent css=.panel__content > p:nth-of-type(2)
waitForPageToLoad
waitForElementPresent css=td.name
assertElementPresent css=td.name
waitForPageToLoad
waitForElementPresent css=button.usa-button.usa-button-primary.usa-button-big
assertText css=button.usa-button.usa-button-primary.usa-button-big Save
waitForPageToLoad
waitForElementPresent css=button.usa-button.usa-button-primary
assertText css=button.usa-button.usa-button-primary *Update*
waitForPageToLoad
waitForElementPresent css=input.usa-button.usa-button-primary
assertText css=input.usa-button.usa-button-primary Save
waitForPageToLoad
waitForElementPresent css=a.icon-link.modal-link
click css=a.icon-link.modal-link
waitForPageToLoad
waitForElementPresent css=#add-port-mem > div > div:nth-of-type(1) > h1
assertText css=#add-port-mem > div > div:nth-of-type(1) > h1 *Invite new portfolio member*
waitForPageToLoad
waitForElementPresent css=#user_data-first_name
type css=#user_data-first_name Brandon
waitForPageToLoad
waitForElementPresent css=#user_data-last_name
type css=#user_data-last_name Buchannan
waitForPageToLoad
waitForElementPresent css=#user_data-email
type css=#user_data-email jay+brandon@promptworks.com
waitForPageToLoad
waitForElementPresent css=#user_data-dod_id
type css=#user_data-dod_id 3456789012
waitForPageToLoad
waitForElementPresent css=input[type="button"]
click css=input[type="button"]
waitForPageToLoad
waitForElementPresent css=#add-port-mem > div > div:nth-of-type(2) > h1
assertText css=#add-port-mem > div > div:nth-of-type(2) > h1 *Assign member permissions*
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_app_mgmt
click css=#permission_sets-perms_app_mgmt
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_app_mgmt > option:nth-of-type(1)
click css=#permission_sets-perms_app_mgmt > option:nth-of-type(1)
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_funding
click css=#permission_sets-perms_funding
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_funding > option:nth-of-type(1)
click css=#permission_sets-perms_funding > option:nth-of-type(1)
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_reporting
click css=#permission_sets-perms_reporting
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_reporting > option:nth-of-type(1)
click css=#permission_sets-perms_reporting > option:nth-of-type(1)
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_portfolio_mgmt
type css=#permission_sets-perms_portfolio_mgmt edit_portfolio_admin
waitForPageToLoad
waitForElementPresent css=#permission_sets-perms_portfolio_mgmt > option:nth-of-type(2)
click css=#permission_sets-perms_portfolio_mgmt > option:nth-of-type(2)
waitForPageToLoad
waitForElementPresent css=input[type="submit"].action-group__action
click css=input[type="submit"].action-group__action
waitForPageToLoad
waitForElementPresent css=table.atat-table > tbody > tr:nth-of-type(2) > td.name
assertElementPresent css=table.atat-table > tbody > tr:nth-of-type(2) > td.name
waitForPageToLoad
waitForElementPresent css=.usa-alert-body > p:nth-of-type(2)
assertText css=.usa-alert-body > p:nth-of-type(2) *You have successfully invited Brandon Buchannan to the portfolio.*
waitForPageToLoad
waitForElementPresent css=a.usa-button.button-danger-outline
click css=a.usa-button.button-danger-outline
waitForPageToLoad
waitForElementPresent css=.responsive-table-wrapper > div:nth-of-type(3) > .modal > .modal__container > .modal__dialog > .modal__body > h1
assertText css=.responsive-table-wrapper > div:nth-of-type(3) > .modal > .modal__container > .modal__dialog > .modal__body > h1 *Are you sure you want to delete this member?*
waitForPageToLoad
waitForElementPresent css=.responsive-table-wrapper > div:nth-of-type(3) > .modal > .modal__container > .modal__dialog > .modal__body > .usa-alert.usa-alert-warning > .usa-alert-body > h3.usa-alert-heading
assertText css=.responsive-table-wrapper > div:nth-of-type(3) > .modal > .modal__container > .modal__dialog > .modal__body > .usa-alert.usa-alert-warning > .usa-alert-body > h3.usa-alert-heading *Warning! You are about to delete a member from the portfolio.*
waitForPageToLoad
waitForElementPresent css=button.usa-button.usa-button-danger
click css=button.usa-button.usa-button-danger
waitForPageToLoad
waitForElementPresent css=.usa-alert.usa-alert-success > .usa-alert-body > h3.usa-alert-heading
assertText css=.usa-alert.usa-alert-success > .usa-alert-body > h3.usa-alert-heading *Portfolio member deleted*
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 deleted Brandon Buchannan from the portfolio.*