Skip to content

Commit

Permalink
adjust timing of submit screen capture to better determine status
Browse files Browse the repository at this point in the history
  • Loading branch information
pripley123 committed Jan 14, 2020
1 parent 881be88 commit 466b93e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ public class RequesterStep extends Step {
WebUI.waitForElementClickable(requestSubmitBtn, Constant.DEFAULT_TIMEOUT)
WebUI.comment('Clicking the submit button')
WebUI.click(requestSubmitBtn)
WebUI.takeScreenshot()

//test if an error alert displays when request is submitted.
if (WebUI.waitForElementPresent(errorAlert, Constant.DEFAULT_TIMEOUT, FailureHandling.OPTIONAL)) {
WebUI.takeScreenshot()
KeywordUtil.markFailed('An error alert displayed upon submission.')
}
WebUI.comment('No error message displayed so submission looks good.')
WebUI.takeScreenshot()
}

@When("requester writes and submits a new comment")
Expand Down

0 comments on commit 466b93e

Please sign in to comment.