use of org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisGraphConfigurationView in project acceptance-test-harness by jenkinsci.
the class AnalysisCollectorPluginTest method should_deactivate_all_other_trend_graphs.
/**
* Verifies that no other trend graphs are shown if configured in the graph configuration screen per user.
*/
@Test
@Issue("JENKINS-30270")
public void should_deactivate_all_other_trend_graphs() {
FreeStyleJob job = createFreeStyleJob();
buildSuccessfulJob(job);
buildSuccessfulJob(job);
job.open();
elasticSleep(500);
assertThatNumberOfGraphsIs(job, 48);
AnalysisCollectorAction action = new AnalysisCollectorAction(job);
AnalysisGraphConfigurationView view = action.configureTrendGraphForUser();
deactivateOtherTrendGraphs(view, true);
assertThatNumberOfGraphsIs(job, 6);
deactivateOtherTrendGraphs(view, false);
assertThatNumberOfGraphsIs(job, 48);
}
Aggregations