Skip to content

Commit

Permalink
Update DOM selector for dialog test
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Jan 6, 2024
1 parent 54e9df2 commit 8fa0f51
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void doAddCredentialsFromPopupWorksAsExpected() throws Exception {
HtmlListItem li = htmlPage.querySelector(".credentials-add-menu-items li");
li.click();
wc.waitForBackgroundJavaScript(4000);
HtmlForm form = htmlPage.querySelector("#credentialsDialog form");
HtmlForm form = htmlPage.querySelector("#credentials-dialog-form");

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

HtmlSpan formSubmitButton = form.querySelector("#credentials-add-submit");
HtmlButton formSubmitButton = htmlPage.querySelector(".jenkins-button[data-id='ok']");
formSubmitButton.fireEvent("click");
wc.waitForBackgroundJavaScript(5000);

Expand Down

0 comments on commit 8fa0f51

Please sign in to comment.