Add Ghost Inspector-recommended flow control to wait for file upload to complete; accommodate empty-state changes

This commit is contained in:
Jay R. Newlin (PromptWorks) 2019-12-06 09:56:55 -05:00
parent 708d8110fe
commit 7638afaa9c

View File

@ -31,7 +31,8 @@
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - New Portfolio-->
<!--Imported from: AT-AT CI - New Portfolio
Imported from: AT-AT CI - login-->
<tr>
<td>open</td>
<td>/login-dev</td>
@ -42,6 +43,23 @@
<td></td>
<td></td>
</tr>
<!--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 - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
@ -109,22 +127,6 @@
<!--Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=#defense_component > option:nth-of-type(14)</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#defense_component > option:nth-of-type(14)</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<!--Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=#description</td>
<td></td>
</tr>
@ -349,13 +351,13 @@
<!--Imported from: AT-AT CI - New Portfolio-->
<tr>
<td>waitForElementPresent</td>
<td>css=.empty-state__message</td>
<td>css=.empty-state h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.empty-state__message</td>
<td>*This portfolio doesnt have any applications*</td>
<td>css=.empty-state h3</td>
<td>*You don't have any Applications yet*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
@ -379,13 +381,13 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.empty-state__message</td>
<td>css=.empty-state h3</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>css=.empty-state__message</td>
<td>*This portfolio doesnt have any active or pending task orders.*</td>
<td>css=.empty-state h3</td>
<td>*Add approved task orders*</td>
</tr>
<tr>
<td>waitForPageToLoad</td>
@ -394,12 +396,12 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=.usa-button.usa-button-big</td>
<td>css=.usa-button.usa-button-primary</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=.usa-button.usa-button-big</td>
<td>css=.usa-button.usa-button-primary</td>
<td></td>
</tr>
<tr>
@ -452,6 +454,17 @@
<td></td>
<td></td>
</tr>
<!--This is Ghost Inspector flow control. The test will wait until the file is uploaded, which in turn causes the button to be enabled (i.e., not disabled).-->
<tr>
<td>assertElementNotPresent</td>
<td>css=input[type="submit"][disabled="disabled"]</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td></td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>css=a[href="#"].uploaded-file__remove</td>