Skip to content

Commit

Permalink
add hard delay just before clicking Assign to Me button
Browse files Browse the repository at this point in the history
  • Loading branch information
pripley123 committed Jan 16, 2020
1 parent 257b483 commit ba44ce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class Constant {
static final def DEFAULT_TIMEOUT = 10
static final def FILE_UPLOAD_TIMEOUT = 5
static final def DOWNLOAD_INTERFACE_TIMEOUT = 2
static final def ASSIGN_TO_ME_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 @@ -45,6 +45,7 @@ public class CheckerStep extends Step {
WebUI.waitForElementNotHasAttribute(assignToMeButtonObject, "disabled", Constant.DEFAULT_TIMEOUT)
WebUI.waitForElementVisible(assignToMeButtonObject, Constant.DEFAULT_TIMEOUT)
WebUI.waitForElementClickable(assignToMeButtonObject, Constant.DEFAULT_TIMEOUT)
WebUI.delay(Constant.ASSIGN_TO_ME_TIMEOUT)
WebUI.click(assignToMeButtonObject)
WebUI.comment("found and clicked the Assign to Me button")
//test if an error alert displays when request is assigned.
Expand Down

0 comments on commit ba44ce5

Please sign in to comment.