diff --git a/uitests/Revoke_Environment_Access.html b/uitests/Revoke_Environment_Access.html new file mode 100644 index 00000000..30feb757 --- /dev/null +++ b/uitests/Revoke_Environment_Access.html @@ -0,0 +1,1322 @@ + + + +
+ + +Revoke Environment Access | +||
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=.about-cloud > h1 | ++ |
assertText | +css=.about-cloud > h1 | +About Cloud Services | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=a[href="/portfolios/new"] | ++ |
click | +css=a[href="/portfolios/new"] | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=main.usa-section > h1 | ++ |
assertText | +css=main.usa-section > h1 | +*New Portfolio Form* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#name | ++ |
type | +css=#name | +Tatooine Energy Maintenance Systems | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#defense_component | ++ |
type | +css=#defense_component | +Defense Logistics Agency | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#description | ++ |
type | +css=#description | +Maintenance and monitoring of the energy grid | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#app_migration > li:nth-of-type(3) > label | ++ |
click | +css=#app_migration > li:nth-of-type(3) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#native_apps > li:nth-of-type(1) > label | ++ |
click | +css=#native_apps > li:nth-of-type(1) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(1) > label | ++ |
click | +css=#portfolio-create > .usa-input:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(1) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(2) > label | ++ |
click | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(2) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(3) > label | ++ |
click | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(3) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(4) > label | ++ |
click | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(4) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(5) > label | ++ |
click | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(6) > fieldset.usa-input__choices > ul > li:nth-of-type(5) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input:nth-of-type(7) > fieldset.usa-input__choices > ul > li:nth-of-type(2) > label | ++ |
click | +css=#portfolio-create > .usa-input:nth-of-type(7) > fieldset.usa-input__choices > ul > li:nth-of-type(2) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(7) > fieldset.usa-input__choices > ul > li:nth-of-type(3) > label | ++ |
click | +css=#portfolio-create > .usa-input.usa-input--success:nth-of-type(7) > fieldset.usa-input__choices > ul > li:nth-of-type(3) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#team_experience > li:nth-of-type(5) > label | ++ |
click | +css=#team_experience > li:nth-of-type(5) > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=input[type="submit"] | ++ |
assertText | +css=input[type="submit"] | +Save | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=input[type="submit"] | ++ |
click | +css=input[type="submit"] | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.portfolio-header__name > h1 | ++ |
assertText | +css=.portfolio-header__name > h1 | +*Tatooine Energy Maintenance Systems* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.empty-state h3 | ++ |
assertText | +css=.empty-state h3 | +*You don't have any Applications yet* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=a.usa-button.usa-button-primary | ++ |
click | +css=a.usa-button.usa-button-primary | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-text > h3 | ++ |
assertText | +css=.sticky-cta-text > h3 | +*Name and Describe New Application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-context | ++ |
assertText | +css=.sticky-cta-context | +*Step 1 of 3* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#name | ++ |
type | +css=#name | +Starter Application | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#description | ++ |
type | +css=#description | +Any basic application | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=button[type="submit"] | ++ |
click | +css=button[type="submit"] | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-text > h3 | ++ |
assertText | +css=.sticky-cta-text > h3 | +*Add Environments to Starter Application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-context | ++ |
assertText | +css=.sticky-cta-context | +*Step 2 of 3* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=h3.usa-alert-heading | ++ |
assertText | +css=h3.usa-alert-heading | +*Application Saved* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=button[type="submit"] | ++ |
click | +css=button[type="submit"] | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-text > h3 | ++ |
assertText | +css=.sticky-cta-text > h3 | +*Add Members to Starter Application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.sticky-cta-context | ++ |
assertText | +css=.sticky-cta-context | +*Step 3 of 3* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=h3.usa-alert-heading | ++ |
assertText | +css=h3.usa-alert-heading | +*Application environments updated* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.empty-state__message | ++ |
assertText | +css=.empty-state__message | +*This Application has no members* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=a.usa-button.usa-button-secondary.add-new-button | ++ |
click | +css=a.usa-button.usa-button-secondary.add-new-button | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#add-app-mem > div > div:nth-of-type(1) > h1 | ++ |
assertElementPresent | +css=#add-app-mem > div > div:nth-of-type(1) > h1 | ++ |
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 | +brandon@example.com | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#user_data-phone_number | ++ |
type | +css=#user_data-phone_number | +(206) 555-2342 | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#user_data-dod_id | ++ |
type | +css=#user_data-dod_id | +3456789012 | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#add-app-mem > div > div:nth-of-type(1) > .action-group > input[type="button"].action-group__action.usa-button | ++ |
click | +css=#add-app-mem > div > div:nth-of-type(1) > .action-group > input[type="button"].action-group__action.usa-button | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#add-app-mem > div > div:nth-of-type(2) > h2 | ++ |
assertElementPresent | +css=#add-app-mem > div > div:nth-of-type(2) > h2 | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.application-perms > div:nth-of-type(1) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
click | +css=.application-perms > div:nth-of-type(1) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.application-perms > div:nth-of-type(2) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
click | +css=.application-perms > div:nth-of-type(2) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.application-perms > div:nth-of-type(3) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
click | +css=.application-perms > div:nth-of-type(3) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=[name=environment_roles-0-role] | ++ |
type | +css=[name=environment_roles-0-role] | +Basic Access | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=[name=environment_roles-1-role] | ++ |
type | +css=[name=environment_roles-1-role] | +Network Admin | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=input[type="submit"] | ++ |
click | +css=input[type="submit"] | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=table.atat-table > tbody > tr > td:nth-of-type(1) > strong | ++ |
assertText | +css=table.atat-table > tbody > tr > td:nth-of-type(1) > strong | +*Brandon Buchannan* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.label | ++ |
assertText | +css=.label | +*INVITE PENDING* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=section.member-list.application-list | ++ |
assertElementPresent | +css=section.member-list.application-list | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=h3.usa-alert-heading | ++ |
assertText | +css=h3.usa-alert-heading | +*Brandon's invitation has been sent* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=span.action-group-footer > a.usa-button | ++ |
click | +css=span.action-group-footer > a.usa-button | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.usa-input.usa-input--validation--anything > input[id="name"][type="text"] | ++ |
assertText | +css=.usa-input.usa-input--validation--anything > input[id="name"][type="text"] | +*Starter Application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#description | ++ |
assertText | +css=#description | +*Any basic application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.label | ++ |
assertText | +css=.label | +*INVITE PENDING* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.accordion-table__items > .accordion-table__item:nth-of-type(1) > .accordion-table__item-content > .environment-list__item > .label.label--below | ++ |
assertElementPresent | +css=.accordion-table__items > .accordion-table__item:nth-of-type(1) > .accordion-table__item-content > .environment-list__item > .label.label--below | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=#delete-application | ++ |
assertText | +css=#delete-application | +*Delete application* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=svg.svg-inline--fa.fa-ellipsis-h.fa-w-16 | ++ |
click | +css=svg.svg-inline--fa.fa-ellipsis-h.fa-w-16 | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.accordion-table__item-toggle-content.app-member-menu__toggle > a:nth-of-type(1) | ++ |
click | +css=.accordion-table__item-toggle-content.app-member-menu__toggle > a:nth-of-type(1) | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.panel > div:nth-of-type(1) > .modal.form-content--app-mem > .modal__container > .modal__dialog > .modal__body > .modal__form--header > h1 | ++ |
assertText | +css=.panel > div:nth-of-type(1) > .modal.form-content--app-mem > .modal__container > .modal__dialog > .modal__body > .modal__form--header > h1 | +*Manage Brandon Buchannan's Access* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.environment_roles.environment-roles-new > fieldset.usa-input__choices.revoke-button:nth-of-type(1) > .form-row > .form-col.form-col--third > label.usa-button.button-danger-outline | ++ |
click | +css=.environment_roles.environment-roles-new > fieldset.usa-input__choices.revoke-button:nth-of-type(1) > .form-row > .form-col.form-col--third > label.usa-button.button-danger-outline | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.usa-alert-text > .form-row > .form-col.form-col--two-thirds > .usa-input__help | ++ |
assertText | +css=.usa-alert-text > .form-row > .form-col.form-col--two-thirds > .usa-input__help | +*Save changes to revoke access* | +
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=label.link | ++ |
click | +css=label.link | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.environment_roles.environment-roles-new > fieldset.usa-input__choices.revoke-button:nth-of-type(1) > .form-row > .form-col.form-col--third > label.usa-button.button-danger-outline | ++ |
click | +css=.environment_roles.environment-roles-new > fieldset.usa-input__choices.revoke-button:nth-of-type(1) > .form-row > .form-col.form-col--third > label.usa-button.button-danger-outline | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=.action-group > input[type="submit"].usa-button.usa-button-primary.action-group__action | ++ |
click | +css=.action-group > input[type="submit"].usa-button.usa-button-primary.action-group__action | ++ |
waitForPageToLoad | ++ | + |
waitForElementPresent | +css=table.atat-table > tbody > tr:nth-of-type(1) > td.env_role--td > .row:nth-of-type(1) > .env-role__role | ++ |
assertText | +css=table.atat-table > tbody > tr:nth-of-type(1) > td.env_role--td > .row:nth-of-type(1) > .env-role__role | +*None* | +