Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -386,7 +386,7 @@ public void testOtherVendorRequest() throws IOException, CommandException

log("Verifying the request created");
waitForElement(Locator.tagWithAttribute("h3", "title", "Purchase Requests"));
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).find();
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"));
Expand Down Expand Up @@ -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("query", getDriver());
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).withName("query").refindWhenNeeded();
table.setFilter("requester", "Equals", "purchaseadmin");
return table.getDataAsText(0, "requestNum");
}
else
{
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).find();
DataRegionTable table = DataRegionTable.DataRegion(getDriver()).refindWhenNeeded();
return table.getDataAsText(table.getDataRowCount() - 1, "rowId");
}
}
Expand Down