Skip to content

Commit

Permalink
Fix xpath for button selection and change test to integration
Browse files Browse the repository at this point in the history
  • Loading branch information
welandaz committed Nov 13, 2024
1 parent bf182d4 commit 3706510
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package hudson.plugins.gradle.injection

import hudson.console.ConsoleNote
import hudson.model.Actionable
import hudson.plugins.gradle.BaseJenkinsIntegrationTest
import hudson.plugins.gradle.BuildScanAction
import spock.lang.Specification
import spock.lang.Subject

import java.nio.charset.StandardCharsets

class DevelocityExceptionLogProcessorTest extends Specification {
class DevelocityExceptionLogProcessorTest extends BaseJenkinsIntegrationTest {

private static final String GRADLE_PLUGIN_ERROR = "Internal error in Gradle Enterprise Gradle plugin: com.acme.FooBar"
private static final String MAVEN_EXTENSION_ERROR = "[ERROR] Internal error in Gradle Enterprise Maven extension: com.acme.FooBar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ class InjectionConfigTest extends BaseJenkinsIntegrationTest {
}

private static HtmlButton getAddButton(HtmlForm form, String label) {
def xpath = "//div[text() = '$label']/following-sibling::div[contains(@class, 'setting-main')]//span[contains(@class, 'repeatable-add')]//button[text() = 'Add']"
def xpath = "//div[text() = '$label']/following-sibling::div[contains(@class, 'setting-main')]//button[contains(@class, 'repeatable-add')]"

return form.getFirstByXPath(xpath)
}
}

0 comments on commit 3706510

Please sign in to comment.