Skip to content

Commit 9dae005

Browse files
janfaraciktimja
andauthored
Adjust for 'refine-hetero-list-add' (#2116)
Co-authored-by: Tim Jacomb <timjacomb1@gmail.com>
1 parent ff59d11 commit 9dae005

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/main/java/org/jenkinsci/test/acceptance/po

src/main/java/org/jenkinsci/test/acceptance/po/Job.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ public <T extends Parameter> T addParameter(Class<T> type) {
365365

366366
control(by.checkbox("This project is parameterized")).check();
367367

368-
control(by.xpath("//button[text()='Add Parameter' and not(contains(@class, 'hetero-list-add-top'))]"))
368+
control(
369+
by.xpath(
370+
"//button[normalize-space(string(.)) = 'Add Parameter' and not(contains(@class, 'hetero-list-add-top'))]"))
369371
.selectDropdownMenu(type);
370372

371373
// TODO selectDropdownMenu should not need this sleep - try and remove it

0 commit comments

Comments
 (0)