Skip to content

Commit

Permalink
add wait for checking dl interface file existance
Browse files Browse the repository at this point in the history
  • Loading branch information
pripley123 committed Jan 15, 2020
1 parent fbae62a commit 964b508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class Constant {

static final def DEFAULT_TIMEOUT = 10
static final def FILE_UPLOAD_TIMEOUT = 5
static final def DOWNLOAD_INTERFACE_TIMEOUT = 2

final class Alerts {
static final def SUCCESS_UPDATED_TEXT = 'Successfully updated'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class CheckerStep extends Step {
WebUI.waitForElementPresent(showAll, Constant.DEFAULT_TIMEOUT)
WebUI.scrollToElement(showAll, Constant.DEFAULT_TIMEOUT)
WebUI.click(showAll)

TestObject linkToRequest = Utils.getTestObjectByText(G_REQUESTNAME)
WebUI.waitForElementPresent(linkToRequest, Constant.DEFAULT_TIMEOUT)
WebUI.waitForElementVisible(linkToRequest, Constant.DEFAULT_TIMEOUT)
Expand Down Expand Up @@ -123,7 +123,7 @@ public class CheckerStep extends Step {
WebUI.waitForPageLoad(Constant.DEFAULT_TIMEOUT)
WebUI.waitForElementNotHasAttribute(newRequestButtonObject, "disabled", Constant.DEFAULT_TIMEOUT)
WebUI.waitForElementVisible(newRequestButtonObject, Constant.DEFAULT_TIMEOUT)

WebUI.delay(Constant.DOWNLOAD_INTERFACE_TIMEOUT)
WebUI.verifyTextPresent(G_REQUESTNAME, false)
WebUI.closeBrowser()
}
Expand Down

0 comments on commit 964b508

Please sign in to comment.