Skip to content

Commit 4cd0700

Browse files
authored
Fix 'groovyClassPath' test ahead of refined reorderable list (#329)
1 parent d942c95 commit 4cd0700

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/test/java/hudson/plugins/throttleconcurrents/ThrottleQueueTaskDispatcherTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ private void configureGlobalThrottling(String labelRoot, int numberOfPairs, int
189189
boolean buttonFound = false;
190190

191191
for (HtmlButton button : buttons) {
192-
if (button.getTextContent().equals(buttonText)) {
193-
buttonFound = true;
192+
if (button.asNormalizedText().equals(buttonText)) {
194193
button.click();
195194

196195
HtmlInput input = form.getInputByName("_.categoryName");
@@ -201,9 +200,8 @@ private void configureGlobalThrottling(String labelRoot, int numberOfPairs, int
201200

202201
buttons = HtmlUnitHelper.getButtonsByXPath(form, parentXPath + buttonsXPath);
203202
buttonText = "Add Maximum Per Labeled Node";
204-
buttonFound = false;
205203
for (HtmlButton deeperButton : buttons) {
206-
if (deeperButton.getTextContent().equals(buttonText)) {
204+
if (deeperButton.asNormalizedText().equals(buttonText)) {
207205
buttonFound = true;
208206
for (int i = 0; i < numberOfPairs; i++) {
209207
List<HtmlInput> inputs;
@@ -344,7 +342,7 @@ private String configureLogger() throws IOException {
344342
boolean buttonFound = false;
345343

346344
for (HtmlButton button : buttons) {
347-
if (button.getTextContent().equals(buttonText)) {
345+
if (button.asNormalizedText().equals(buttonText)) {
348346
buttonFound = true;
349347
button.click();
350348

0 commit comments

Comments
 (0)