@Test public void passwordCannotMatchUsernameTest() throws Exception { settingPage.clickOnSetting(); settingPage.clickOnSecurity(); settingPage.chooseFalse(); settingPage.saveProperties(); headerPage.clickOnHomeLink(); homePage.goToAdministration(); administrationPage.clickOnManageUsers(); manageUserPage.clickOnAddUser(); manageUserPage.createNewPerson(); manageUserPage.enterUserMale("dr_house", "House", "dr_house", "Dr_house123"); manageUserPage.chooseRole(); manageUserPage.saveUser(); assertTrue(driver.getPageSource().contains("User Saved")); manageUserPage.findUser("dr_house"); manageUserPage.deleteUser(); assertTrue(driver.getPageSource().contains("Successfully deleted user.")); headerPage.clickOnHomeLink(); homePage.goToAdministration(); settingPage.clickOnSetting(); settingPage.clickOnSecurity(); settingPage.chooseTrue(); assertTrue(driver.getPageSource().contains("Global properties saved")); }
@After public void tearDown() throws Exception { headerPage.clickOnHomeLink(); headerPage.logOut(); }