use of com.wikia.webdriver.elements.mercury.old.JoinPageObject in project selenium-tests by Wikia.
the class LoginTestsOld method MercuryLoginTest_009_registerButtonWorksOnJoinPage.
@Test(groups = { "MercuryLoginTest_009", "Mercury_LoginTests_002" })
public void MercuryLoginTest_009_registerButtonWorksOnJoinPage() {
SignupPageObject registrationPage = new SignupPageObject(driver);
registrationPage.openRegisterPage();
String expectedHeader = registrationPage.getRegisterHeaderText();
JoinPageObject joinPageObject = new JoinPageObject(driver).get();
joinPageObject.clickRegisterWithEmail();
Assertion.assertEquals(registrationPage.getRegisterHeaderText(), expectedHeader);
}
use of com.wikia.webdriver.elements.mercury.old.JoinPageObject in project selenium-tests by Wikia.
the class LoginTestsOld method MercuryLoginTest_008_userIsTakenToJoinPage.
@Test(groups = { "MercuryLoginTest_008", "Mercury_LoginTests_002" })
public void MercuryLoginTest_008_userIsTakenToJoinPage() {
JoinPageObject joinPageObject = new JoinPageObject(driver).get();
String expectedMessage = joinPageObject.getJoinTodayText();
driver.get(wikiURL);
new TopBar(driver).openNavigation();
new Navigation(driver).clickOnSignInRegisterButton();
Assertion.assertEquals(joinPageObject.getJoinTodayText(), expectedMessage);
}
use of com.wikia.webdriver.elements.mercury.old.JoinPageObject in project selenium-tests by Wikia.
the class LoginTestsOld method MercuryLoginTest_010_signInLinkWorksOnJoinPage.
@Test(groups = { "MercuryLoginTest_010", "Mercury_LoginTests_002" })
public void MercuryLoginTest_010_signInLinkWorksOnJoinPage() {
LoginPageObject loginPageObject = new LoginPageObject(driver).get();
String expectedHeader = loginPageObject.getLoginHeaderText();
JoinPageObject joinPageObject = new JoinPageObject(driver).get();
joinPageObject.clickSignInLink();
Assertion.assertEquals(loginPageObject.getLoginHeaderText(), expectedHeader);
}
Aggregations