Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-30270] Fixed name of warnings trend graph cookie.
- Loading branch information
Showing
6 changed files
with
140 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
.../jenkinsci/test/acceptance/plugins/analysis_collector/AnalysisGraphConfigurationView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.jenkinsci.test.acceptance.plugins.analysis_collector; | ||
|
||
import org.jenkinsci.test.acceptance.plugins.analysis_core.GraphConfigurationView; | ||
import org.jenkinsci.test.acceptance.po.ContainerPageObject; | ||
import org.jenkinsci.test.acceptance.po.Control; | ||
|
||
/** | ||
* Configuration screen of trend graph for the analysis-collector plug-in. | ||
* | ||
* @author Ullrich Hafner | ||
*/ | ||
public class AnalysisGraphConfigurationView extends GraphConfigurationView { | ||
private final Control canDeacticateOtherTrendGraphs = control("/canDeacticateOtherTrendGraphs"); | ||
|
||
/** | ||
* Creates a new instance of {@link AnalysisGraphConfigurationView}. | ||
* | ||
* @param parent Parent container page object | ||
*/ | ||
public AnalysisGraphConfigurationView(final ContainerPageObject parent) { | ||
super(parent, "analysis"); | ||
} | ||
|
||
/** | ||
* Deactivates or activates the other trend graphs. | ||
* | ||
* @param shouldDisable determines if the other trend graphs should be deactivated | ||
*/ | ||
public void deactiveOtherTrendGraphs(final boolean shouldDisable) { | ||
canDeacticateOtherTrendGraphs.check(shouldDisable); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...main/java/org/jenkinsci/test/acceptance/plugins/analysis_core/GraphConfigurationView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.jenkinsci.test.acceptance.plugins.analysis_core; | ||
|
||
import org.jenkinsci.test.acceptance.po.ContainerPageObject; | ||
import org.jenkinsci.test.acceptance.po.Control; | ||
import org.openqa.selenium.WebDriver; | ||
|
||
/** | ||
* Configuration screen of trend graphs. | ||
* | ||
* @author Ullrich Hafner | ||
*/ | ||
public class GraphConfigurationView extends ContainerPageObject { | ||
private final Control width = control("/width"); | ||
private final Control height = control("/height"); | ||
private final Control buildCount = control("/buildCountString"); | ||
private final Control dayCount = control("/dayCountString"); | ||
private final Control parameterName = control("/parameterName"); | ||
private final Control parameterValue = control("/parameterValue"); | ||
private final Control useBuildDateAsDomain = control("/useBuildDateAsDomain"); | ||
private final Control fixed = control("/graphType[FIXED]"); | ||
|
||
public GraphConfigurationView(final ContainerPageObject parent, final String plugin) { | ||
super(parent, parent.url("%s/configure/", plugin)); | ||
} | ||
|
||
/** | ||
* Saves the trend graph configuration. | ||
*/ | ||
public void save() { | ||
clickButton("Save"); | ||
} | ||
|
||
@Override | ||
public WebDriver open() { | ||
WebDriver open = super.open(); | ||
|
||
elasticSleep(1000); // trend graphs take some time to compute... | ||
return open; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters