use of com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand in project cia by Hack23.
the class UserRoleSystemTest method siteCommitteeRankingViewCurrentCommitteePartiesChartsTest.
/**
* Site committee ranking view current committee parties charts test.
*
* @throws Exception
* the exception
*/
@Test
public void siteCommitteeRankingViewCurrentCommitteePartiesChartsTest() throws Exception {
final WebDriver driver = getWebDriver();
assertNotNull(NO_WEBDRIVER_EXIST_FOR_BROWSER + browser, driver);
final UserPageVisit userPageVisit = new UserPageVisit(driver, browser);
userPageVisit.visitDirectPage(new PageModeMenuCommand(UserViews.COMMITTEE_RANKING_VIEW_NAME, PageMode.CHARTS, ChartIndicators.CURRENTCOMMITTEESBYPARTYDAYSSERVED.toString()));
}
use of com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand in project cia by Hack23.
the class UserRoleSystemTest method siteParliamentRuleViolationsTest.
/**
* Site parliament rule violations test.
*
* @throws Exception
* the exception
*/
@Test
public void siteParliamentRuleViolationsTest() throws Exception {
final WebDriver driver = getWebDriver();
assertNotNull(NO_WEBDRIVER_EXIST_FOR_BROWSER + browser, driver);
final UserPageVisit userPageVisit = new UserPageVisit(driver, browser);
userPageVisit.visitDirectPage(new PageModeMenuCommand(UserViews.PARLIAMENT_RANKING_VIEW_NAME, PageMode.RULES, RiskIndicators.RULE_VIOLATIONS.toString()));
}
use of com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand in project cia by Hack23.
the class UserRoleSystemTest method siteLoginUserCheckUserVisitsTest.
/**
* Site login user check user visits test.
*
* @throws Exception
* the exception
*/
@Test
public void siteLoginUserCheckUserVisitsTest() throws Exception {
final WebDriver driver = getWebDriver();
assertNotNull(NO_WEBDRIVER_EXIST_FOR_BROWSER + browser, driver);
final UserPageVisit userPageVisit = new UserPageVisit(driver, browser);
userPageVisit.visitDirectPage(new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, ApplicationPageMode.REGISTER.toString()));
final String username = UUID.randomUUID().toString();
final String password = generatePassword();
userPageVisit.registerNewUser(username, password);
userPageVisit.logoutUser();
driver.quit();
final WebDriver loginDriver = getWebDriver();
final UserPageVisit userLoginPageVisit = new UserPageVisit(loginDriver, browser);
userLoginPageVisit.visitDirectPage(new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, ApplicationPageMode.LOGIN.toString()));
userLoginPageVisit.loginUser(username + "@test.com", password);
final WebElement useraccountMenuItem = userLoginPageVisit.getMenuItem("Useraccount");
assertNotNull(useraccountMenuItem);
userLoginPageVisit.performClickAction(useraccountMenuItem);
Thread.sleep(1000);
final WebElement userVisitsMenuItem = userLoginPageVisit.getMenuItem("User Visits");
assertNotNull(userVisitsMenuItem);
userLoginPageVisit.performClickAction(userVisitsMenuItem);
userLoginPageVisit.logoutUser();
}
use of com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand in project cia by Hack23.
the class UserRoleSystemTest method sitePartyRankingViewOverviewTest.
/**
* Site party ranking view overview test.
*
* @throws Exception
* the exception
*/
@Test
public void sitePartyRankingViewOverviewTest() throws Exception {
final WebDriver driver = getWebDriver();
assertNotNull(NO_WEBDRIVER_EXIST_FOR_BROWSER + browser, driver);
final UserPageVisit userPageVisit = new UserPageVisit(driver, browser);
userPageVisit.visitDirectPage(new PageModeMenuCommand(UserViews.PARTY_RANKING_VIEW_NAME, PageMode.OVERVIEW));
}
use of com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand in project cia by Hack23.
the class UserRoleSystemTest method siteParliamentChartViewPartyAgeTest.
/**
* Site parliament chart view party age test.
*
* @throws Exception
* the exception
*/
@Test
public void siteParliamentChartViewPartyAgeTest() throws Exception {
final WebDriver driver = getWebDriver();
assertNotNull(NO_WEBDRIVER_EXIST_FOR_BROWSER + browser, driver);
final UserPageVisit userPageVisit = new UserPageVisit(driver, browser);
userPageVisit.visitDirectPage(new PageModeMenuCommand(UserViews.PARLIAMENT_RANKING_VIEW_NAME, PageMode.CHARTS, ChartIndicators.PARTYAGE.toString()));
}
Aggregations