# New App Step 2 - Add Env

New App Step 2 - Add Env
waitForPageToLoad |  |
open | /login-dev |
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=#defense_component > option:nth-of-type(14) |
click | css=#defense_component > option:nth-of-type(14) |
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__message |
assertText | css=.empty-state__message | *This portfolio doesn’t have any applications*
waitForPageToLoad |  |
waitForElementPresent | css=a.usa-button.usa-button-big |
click | css=a.usa-button.usa-button-big |
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="button"].icon-link |
click | css=button[type="button"].icon-link |
waitForPageToLoad |  |
waitForElementPresent | css=#environment_names-4 |
type | css=#environment_names-4 | Preprod