-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refind the dataregion when went stale.
- Loading branch information
1 parent
5d76bb8
commit 08e3a76
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -320,7 +320,7 @@ public void testCreateRequestAndEmailNotification() throws IOException, CommandE | |
|
||
log("Verifying the request created"); | ||
waitForElement(Locator.tagWithAttribute("h3", "title", "Purchase Requests")); | ||
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).find(); | ||
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).refindWhenNeeded(); | ||
assertEquals("Invalid number of requests ", 1, table.getDataRowCount()); | ||
assertEquals("Invalid request status ", "Review Pending", | ||
table.getDataAsText(0, "requestStatus")); | ||
|
@@ -386,7 +386,7 @@ public void testOtherVendorRequest() throws IOException, CommandException | |
|
||
log("Verifying the request created"); | ||
waitForElement(Locator.tagWithAttribute("h3", "title", "Purchase Requests")); | ||
DataRegionTable table = new DataRegionTable.DataRegionFinder(getDriver()).waitFor(); | ||
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).refindWhenNeeded(); | ||
checker().verifyEquals("Invalid number of requests ", 1, table.getDataRowCount()); | ||
checker().verifyEquals("Invalid request status ", "Review Pending", | ||
table.getDataAsText(0, "requestStatus")); | ||
|
@@ -962,13 +962,13 @@ private String createRequest(Map<String, String> request, @Nullable File fileNam | |
if (getCurrentUser().equals("[email protected]")) | ||
{ | ||
clickAndWait(Locator.linkWithText("All Open Requests")); | ||
DataRegionTable table = new DataRegionTable.DataRegionFinder(getDriver()).withName("query").waitFor(); | ||
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).withName("query").refindWhenNeeded(); | ||
table.setFilter("requester", "Equals", "purchaseadmin"); | ||
return table.getDataAsText(0, "requestNum"); | ||
} | ||
else | ||
{ | ||
DataRegionTable table = new DataRegionTable.DataRegionFinder(getDriver()).waitFor(); | ||
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).refindWhenNeeded(); | ||
return table.getDataAsText(table.getDataRowCount() - 1, "rowId"); | ||
} | ||
} | ||
|