TO Step 3 - Add CLIN
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=.icon--funding
click css=.icon--funding
waitForPageToLoad
waitForElementPresent css=.empty-state__message
assertText css=.empty-state__message *This portfolio doesn’t have any active or pending task orders.*
waitForPageToLoad
waitForElementPresent css=.usa-button.usa-button-big
click css=.usa-button.usa-button-big
waitForPageToLoad
waitForElementPresent css=.sticky-cta-text > h3
assertText css=.sticky-cta-text > h3 *Add Task Order (step 1 of 5)*
waitForPageToLoad
waitForElementPresent css=.upload-button
click css=.upload-button
waitForPageToLoad
waitForElementPresent css=#pdf
type css=#pdf https://ghostinspector-prod.s3.amazonaws.com/uploads/726e1c95-2d16-4793-85d8-b4d3ae9cd35d.pdf
waitForPageToLoad
waitForElementPresent css=a[href="#"].uploaded-file__remove
assertText css=a[href="#"].uploaded-file__remove *Remove*
waitForPageToLoad
waitForElementPresent css=input[type="submit"]
click css=input[type="submit"]
waitForPageToLoad
waitForElementPresent css=.sticky-cta-text > h3
assertText css=.sticky-cta-text > h3 *Add Task Order (step 2 of 5)*
waitForPageToLoad
waitForElementPresent css=#number
type css=#number 1234567890123
waitForPageToLoad
waitForElementPresent css=svg.svg-inline--fa.fa-check-circle > path
assertElementPresent css=svg.svg-inline--fa.fa-check-circle > path
waitForPageToLoad
waitForElementPresent css=input[type="submit"]
click css=input[type="submit"]
waitForPageToLoad
waitForElementPresent css=.sticky-cta-text > h3
assertText css=.sticky-cta-text > h3 *Add Task Order (step 3 of 5)*
waitForPageToLoad
waitForElementPresent css=#clins-0-number
type css=#clins-0-number 0002
waitForPageToLoad
waitForElementPresent css=.card__title > .h4
assertText css=.card__title > .h4 *CLIN 0002*
waitForPageToLoad
waitForElementPresent css=#clins-0-jedi_clin_type
type css=#clins-0-jedi_clin_type JEDI_CLIN_2
waitForPageToLoad
waitForElementPresent css=#clins-0-jedi_clin_type > option:nth-of-type(2)
click css=#clins-0-jedi_clin_type > option:nth-of-type(2)
waitForPageToLoad
waitForElementPresent css=#percent-obligated
assertText css=#percent-obligated *0%*
waitForPageToLoad
waitForElementPresent css=#clins-0-total_amount
type css=#clins-0-total_amount $800,000
waitForPageToLoad
waitForElementPresent css=#clins-0-obligated_amount
type css=#clins-0-obligated_amount $100,000
waitForPageToLoad
waitForElementPresent css=#percent-obligated
assertText css=#percent-obligated *13%*
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
click css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
type css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"] 10
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]
type css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"] 01
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"]
type css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"] 2019
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
type css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"] 06
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]
type css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"] 30
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"]
type css=fieldset[name="clins-0-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"] 2020
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
click css=fieldset[name="clins-0-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-0-end_date"] > .date-picker-component > div:nth-of-type(4) > .usa-form-group-date-ok > .icon.icon--ok.icon--green > svg.svg-inline--fa.fa-check-circle.fa-w-16
assertElementPresent css=fieldset[name="clins-0-end_date"] > .date-picker-component > div:nth-of-type(4) > .usa-form-group-date-ok > .icon.icon--ok.icon--green > svg.svg-inline--fa.fa-check-circle.fa-w-16
waitForPageToLoad
waitForElementPresent css=#add-clin > span:nth-of-type(2)
click css=#add-clin > span:nth-of-type(2)
waitForPageToLoad
waitForElementPresent css=#clins-1-number
type css=#clins-1-number 0003
waitForPageToLoad
waitForElementPresent css=#clins-1-jedi_clin_type
type css=#clins-1-jedi_clin_type JEDI_CLIN_3
waitForPageToLoad
waitForElementPresent css=#clins-1-jedi_clin_type > option:nth-of-type(3)
click css=#clins-1-jedi_clin_type > option:nth-of-type(3)
waitForPageToLoad
waitForElementPresent css=#clins-1-total_amount
type css=#clins-1-total_amount $100,000
waitForPageToLoad
waitForElementPresent css=#clins-1-obligated_amount
type css=#clins-1-obligated_amount $25,000
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
type css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"] 10
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]
type css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"] 1
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"]
type css=fieldset[name="clins-1-start_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"] 2019
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"]
type css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-month > input[name="date-month"] 6
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]
type css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"] 30
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"]
type css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-year > input[name="date-year"] 2020
waitForPageToLoad
waitForElementPresent css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]
click css=fieldset[name="clins-1-end_date"] > .date-picker-component > .usa-form-group.usa-form-group-day > input[name="date-day"]