Skip to content

Commit

Permalink
fix test #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinter69 committed Aug 6, 2023
1 parent 512c41b commit 4a30dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/test/java/lib/form/HeteroListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void xssPrevented_heteroList_usingDescriptorDisplayName() throws Exceptio
HtmlPage page = wc.goTo("root");

page.executeJavaScript("document.querySelector('.hetero-list-add').click();");
Object result = page.executeJavaScript("document.querySelector('button .jenkins-dropdown__item')").getJavaScriptResult();
Object result = page.executeJavaScript("document.querySelector('.jenkins-dropdown__item')").getJavaScriptResult();
assertThat(result, instanceOf(HTMLButtonElement.class));
HTMLButtonElement menuItem = (HTMLButtonElement) result;
String menuItemContent = menuItem.getInnerHTML();
Expand Down

0 comments on commit 4a30dfc

Please sign in to comment.