atst/uitests/Add_CCPO_User.html
2020-02-28 11:40:38 -05:00

291 lines
6.1 KiB
HTML

<?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>Add CCPO User</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.04" />
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr>
<td rowspan="1" colspan="3">Add CCPO User</td>
</tr>
</thead>
<tbody>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--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 - 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 - 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 - 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>
<tr>
<td>open</td>
<td>/login-dev?username=sam</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<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>*Sam Stevenson*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/ccpo-users</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.h2</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.h2</td>
<td>*CCPO Users*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=a[href="/ccpo-users/new"]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=a[href="/ccpo-users/new"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=#add-ccpo-user-form > h1</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=#add-ccpo-user-form > h1</td>
<td>*Add new CCPO user*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=#dod_id</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>css=#dod_id</td>
<td>3456789012</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<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>
<tr>
<td>waitForElementPresent</td>
<td>css=.global-panel-container > .ccpo-panel-container > h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.global-panel-container > .ccpo-panel-container > h3</td>
<td>*Confirm new CCPO user*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<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>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-alert.usa-alert-success > .usa-alert-body > .usa-alert-text</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.usa-alert.usa-alert-success > .usa-alert-body > .usa-alert-text</td>
<td>*You have successfully given Brandon Buchannan CCPO permissions.*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.col > table > tbody > tr:nth-of-type(1) > td:nth-of-type(1)</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.col > table > tbody > tr:nth-of-type(1) > td:nth-of-type(1)</td>
<td>*Brandon Buchannan*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=a.usa-button.button-danger-outline</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=a.usa-button.button-danger-outline</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.global-panel-container > .ccpo-panel-container > div:nth-of-type(2) > .modal > .modal__container > .modal__dialog > .modal__body > div:nth-of-type(2) > .action-group > a.action-group__action.icon-link.icon-link--default</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>css=.global-panel-container > .ccpo-panel-container > div:nth-of-type(2) > .modal > .modal__container > .modal__dialog > .modal__body > div:nth-of-type(2) > .action-group > a.action-group__action.icon-link.icon-link--default</td>
<td></td>
</tr>
</tbody>
</table>
</body>
</html>