Search in sources :

Example 1 with AnalysisGraphConfigurationView

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);
}
Also used : AnalysisGraphConfigurationView(org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisGraphConfigurationView) AnalysisCollectorAction(org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisCollectorAction) FreeStyleJob(org.jenkinsci.test.acceptance.po.FreeStyleJob) Issue(org.jvnet.hudson.test.Issue) Test(org.junit.Test)

Aggregations

AnalysisCollectorAction (org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisCollectorAction)1 AnalysisGraphConfigurationView (org.jenkinsci.test.acceptance.plugins.analysis_collector.AnalysisGraphConfigurationView)1 FreeStyleJob (org.jenkinsci.test.acceptance.po.FreeStyleJob)1 Test (org.junit.Test)1 Issue (org.jvnet.hudson.test.Issue)1