/**
   * 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);
  }