Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Jan 15, 2020
2 parents d658c25 + 466b93e commit fbae62a
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 fbae62a

Please sign in to comment.