@After public void tearDown() throws Exception { headerPage.clickOnHomeIcon(); deletePatient(patient.Uuid); waitForPatientDeletion(patient.Uuid); headerPage.logOut(); }
@Ignore @Test public void findPatientByIdAndNameTest() throws Exception { homePage.openRegisterAPatientApp(); patient.familyName = "Bob"; patient.givenName = "Smith"; patient.gender = "Male"; patient.estimatedYears = "25"; registrationPage.enterPatientGivenName(patient.givenName); registrationPage.enterPatientFamilyName(patient.familyName); registrationPage.clickOnGenderLink(); registrationPage.selectPatientGender(patient.gender); registrationPage.clickOnBirthDateLink(); registrationPage.enterEstimatedYears(patient.estimatedYears); registrationPage.clickOnContactInfo(); patient.address1 = "address"; registrationPage.enterAddress1(patient.address1); registrationPage.clickOnConfirmSection(); registrationPage.confirmPatient(); id = patientDashboardPage.findPatientId(); patient.Uuid = patientIdFromUrl(); headerPage.clickOnHomeIcon(); homePage.clickOnFindPatientRecord(); findPatientPage.enterPatient("Bob Smith"); assertTrue(driver.getPageSource().contains(id)); findPatientPage.enterPatient(id); assertTrue(driver.getPageSource().contains(id)); }