@Test
  public void shouldShowNonCodedDiagnosesPageUsingConsultNote() throws Exception {
    createConsultNote();
    appDashboard.openReportApp();
    reportsHomePage.openNonCodedDiagnosesReport(NON_CODED_DIAGNOSIS);
    NonCodedDiagnosesList nonCodedDiagnosesList = new NonCodedDiagnosesList(driver);
    List<String> nonCodedDiagnoses = nonCodedDiagnosesList.getNonCodedDiagnoses();

    Assert.assertTrue(nonCodedDiagnoses.contains(NON_CODED_DIAGNOSIS));
  }
  @Test
  public void shouldNotShowNonCodedDiagnosisAfterReplaceforExistingCodesForConsultNote()
      throws Exception {
    createConsultNote();
    appDashboard.openReportApp();
    reportsHomePage.openNonCodedDiagnosesReport(NON_CODED_DIAGNOSIS);
    NonCodedDiagnosesList nonCodedDiagnosesList = new NonCodedDiagnosesList(driver);
    nonCodedDiagnosesList.openCodeDiagnosisDialog(NON_CODED_DIAGNOSIS);
    nonCodedDiagnosesList.setTextToField("diagnosis-search", CODED_DIAGNOSIS);
    driver.findElement(By.cssSelector("strong.matched-name")).click();
    nonCodedDiagnosesList.clickOn(confirmCodeDiagnosis);
    nonCodedDiagnosesList.wait5seconds.until(
        invisibilityOfElementLocated(By.id(CODE_DIAGNOSIS_DIALOG)));
    List<String> nonCodedDiagnoses = nonCodedDiagnosesList.getNonCodedDiagnoses();

    Assert.assertFalse(nonCodedDiagnoses.contains(NON_CODED_DIAGNOSIS));
  }