Skip to content

Commit

Permalink
Set sensible waitForBackgroundJavaScript timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslavafenkin committed Sep 15, 2023
1 parent ef08c30 commit 53e74eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void doAddCredentialsFromPopupWorksAsExpected() throws Exception {
addCredentialsButton.click();
HtmlListItem li = htmlPage.querySelector(".credentials-add-menu-items li");
li.click();
wc.waitForBackgroundJavaScript(2000);
wc.waitForBackgroundJavaScript(4000);
HtmlForm form = htmlPage.querySelector("#credentialsDialog form");

HtmlInput username = form.querySelector("input[name='_.username']");
Expand All @@ -42,7 +42,7 @@ public void doAddCredentialsFromPopupWorksAsExpected() throws Exception {

HtmlSpan formSubmitButton = form.querySelector("#credentials-add-submit");
formSubmitButton.fireEvent("click");
wc.waitForBackgroundJavaScript(1000);
wc.waitForBackgroundJavaScript(5000);

// check if credentials were added
List<UsernamePasswordCredentials> creds = CredentialsProvider.lookupCredentials(UsernamePasswordCredentials.class);
Expand Down

0 comments on commit 53e74eb

Please sign in to comment.