New test for Application Index page

This commit is contained in:
Jay R. Newlin (PromptWorks) 2019-12-18 11:12:30 -05:00
parent e585e8fcaa
commit d464171461

View File

@ -0,0 +1,761 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Application Index with App</title>
<meta name="ghost-inspector-details" content="" />
<meta name="ghost-inspector-browser" content="chrome" />
<meta name="ghost-inspector-userAgent" content="" />
<meta name="ghost-inspector-region" content="us-east-1" />
<meta name="ghost-inspector-globalStepDelay" content="250" />
<meta name="ghost-inspector-maxWaitDelay" content="15000" />
<meta name="ghost-inspector-maxAjaxDelay" content="10000" />
<meta name="ghost-inspector-viewportSize" content="1920x1080" />
<meta name="ghost-inspector-screenshotTarget" content="" />
<meta name="ghost-inspector-screenshotExclusions" content="div.global-navigation, time" />
<meta name="ghost-inspector-screenshotCompareEnabled" content="true" />
<meta name="ghost-inspector-screenshotCompareThreshold" content="0.02" />
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr>
<td rowspan="1" colspan="3">Application Index with App</td>
</tr>
</thead>
<tbody>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - Login Brandon-->
<tr>
<td>open</td>
<td>/login-dev?username=brandon</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - Login Brandon-->
<tr>
<td>waitForElementPresent</td>
<td>css=a[href="/user"] > .topbar__link-label</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=a[href="/user"] > .topbar__link-label</td>
<td>*Brandon Buchannan*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - Login Brandon-->
<tr>
<td>waitForElementPresent</td>
<td>css=a[href="/logout"] > .topbar__link-label</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=a[href="/logout"] > .topbar__link-label</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - Login Brandon-->
<tr>
<td>waitForElementPresent</td>
<td>css=.col > .usa-alert.usa-alert-info:nth-of-type(2) > .usa-alert-body > h3.usa-alert-heading</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.col > .usa-alert.usa-alert-info:nth-of-type(2) > .usa-alert-body > h3.usa-alert-heading</td>
<td>*Logged out*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio
Imported from: AT-AT CI - login-->
<tr>
<td>open</td>
<td>/login-dev</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio
Imported from: AT-AT CI - login-->
<tr>
<td>waitForElementPresent</td>
<td>css=.about-cloud > h1</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.about-cloud > h1</td>
<td>About Cloud Services</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=a[href="/portfolios/new"]</td>
<td></td>
</tr>
<tr original-target="a[href="/portfolios/new"],xpath=//a[contains(text(), "Add New Portfolio")]">
<td>click</td>
<td>css=a[href="/portfolios/new"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=.portfolio-header__name > h1</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.portfolio-header__name > h1</td>
<td>*New Portfolio*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=.sticky-cta-text > h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.sticky-cta-text > h3</td>
<td>*Create New Portfolio*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=#name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#name</td>
<td>Tatooine Energy Maintenance Systems</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=fieldset.usa-input__choices > ul > li:nth-of-type(5) > label</td>
<td></td>
</tr>
<tr original-target="fieldset.usa-input__choices > ul > li:nth-of-type(5) > label,xpath=//label[contains(text(), "Other")]">
<td>click</td>
<td>css=fieldset.usa-input__choices > ul > li:nth-of-type(5) > label</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application
Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=.empty-state > h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.empty-state > h3</td>
<td>*You don't have any Applications yet*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-button.usa-button-primary</td>
<td></td>
</tr>
<tr original-target=".usa-button.usa-button-primary,xpath=//a[contains(text(), "Create Your First Application")]">
<td>click</td>
<td>css=.usa-button.usa-button-primary</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#name</td>
<td>Starter Application</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=button[type="submit"]</td>
<td></td>
</tr>
<tr original-target="button[type="submit"],xpath=//button[contains(text(), "Next: Add Environments")]">
<td>click</td>
<td>css=button[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=button[type="submit"]</td>
<td></td>
</tr>
<tr original-target="button[type="submit"],xpath=//button[contains(text(), "Next: Add Members")]">
<td>click</td>
<td>css=button[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=a.usa-button.usa-button-secondary.add-new-button</td>
<td></td>
</tr>
<tr original-target="a.usa-button.usa-button-secondary.add-new-button,xpath=//a[contains(text(), "Add Team Member")]">
<td>click</td>
<td>css=a.usa-button.usa-button-secondary.add-new-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#user_data-first_name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#user_data-first_name</td>
<td>Brandon</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#user_data-last_name</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#user_data-last_name</td>
<td>Buchannan</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#user_data-email</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#user_data-email</td>
<td>jay+brandon@promptworks.com</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#user_data-dod_id</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#user_data-dod_id</td>
<td>3456789012</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#add-app-mem > div > div:nth-of-type(1) > .action-group > input[type="button"].action-group__action.usa-button</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#add-app-mem > div > div:nth-of-type(1) > .action-group > input[type="button"].action-group__action.usa-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.application-perms > div:nth-of-type(1) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr original-target=".application-perms > div:nth-of-type(1) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label,xpath=//label[contains(text(), "Edit Application Team")]">
<td>click</td>
<td>css=.application-perms > div:nth-of-type(1) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.application-perms > div:nth-of-type(2) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr original-target=".application-perms > div:nth-of-type(2) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label,xpath=//label[contains(text(), "Manage Application Environments")]">
<td>click</td>
<td>css=.application-perms > div:nth-of-type(2) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.application-perms > div:nth-of-type(3) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr original-target=".application-perms > div:nth-of-type(3) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label,xpath=//label[contains(text(), "Delete Application")]">
<td>click</td>
<td>css=.application-perms > div:nth-of-type(3) > .usa-input.input__inline-fields > fieldset.usa-input__choices > legend > label</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#environment_roles-0-role-None</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#environment_roles-0-role-None</td>
<td>Basic Access</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#environment_roles-1-role-None</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#environment_roles-1-role-None</td>
<td>Network Admin</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=input[type="submit"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=span.action-group-footer > a.usa-button</td>
<td></td>
</tr>
<tr original-target="span.action-group-footer > a.usa-button,xpath=//a[contains(text(), "Return to Application Settings")]">
<td>click</td>
<td>css=span.action-group-footer > a.usa-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.sticky-cta-text > h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.sticky-cta-text > h3</td>
<td>*Starter Application*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.label</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.label</td>
<td>*INVITE PENDING*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=.accordion-table__items > .accordion-table__item:nth-of-type(1) > .accordion-table__item-content > .environment-list__item > .label.label--below</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=.accordion-table__items > .accordion-table__item:nth-of-type(1) > .accordion-table__item-content > .environment-list__item > .label.label--below</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - Create New Application-->
<tr>
<td>waitForElementPresent</td>
<td>css=#delete-application</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=#delete-application</td>
<td>*Delete application*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.icon--applications</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=.icon--applications</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.sticky-cta-text > h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.sticky-cta-text > h3</td>
<td>*Applications*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.accordion-list</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=.accordion-list</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr original-target="button.usa-accordion-button,xpath=//button[contains(text(), "Environments (4)")]">
<td>click</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(1) > .row > .col.col--grow</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(1) > .row > .col.col--grow</td>
<td>*Development*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(2) > .row > .col.col--grow</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(2) > .row > .col.col--grow</td>
<td>*Production*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(3) > .row > .col.col--grow</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(3) > .row > .col.col--grow</td>
<td>*Staging*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(4) > .row > .col.col--grow</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.usa-accordion-content > .accordion__content--list-item:nth-of-type(4) > .row > .col.col--grow</td>
<td>*Testing*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr original-target="button.usa-accordion-button,xpath=//button[contains(text(), "Environments (4)")]">
<td>click</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr original-target="button.usa-accordion-button,xpath=//button[contains(text(), "Environments (4)")]">
<td>click</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=a.accordion-list__collapse</td>
<td></td>
</tr>
<tr original-target="a.accordion-list__collapse,xpath=//a[contains(text(), "Collapse All")]">
<td>click</td>
<td>css=a.accordion-list__collapse</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
<tr original-target="button.usa-accordion-button,xpath=//button[contains(text(), "Environments (4)")]">
<td>click</td>
<td>css=button.usa-accordion-button</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>