Search in sources :

Example 1 with JoinPageObject

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);
}
Also used : SignupPageObject(com.wikia.webdriver.elements.mercury.old.SignupPageObject) JoinPageObject(com.wikia.webdriver.elements.mercury.old.JoinPageObject) Test(org.testng.annotations.Test)

Example 2 with JoinPageObject

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);
}
Also used : Navigation(com.wikia.webdriver.elements.mercury.components.Navigation) TopBar(com.wikia.webdriver.elements.mercury.components.TopBar) JoinPageObject(com.wikia.webdriver.elements.mercury.old.JoinPageObject) Test(org.testng.annotations.Test)

Example 3 with JoinPageObject

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);
}
Also used : LoginPageObject(com.wikia.webdriver.elements.mercury.old.LoginPageObject) JoinPageObject(com.wikia.webdriver.elements.mercury.old.JoinPageObject) Test(org.testng.annotations.Test)

Aggregations

JoinPageObject (com.wikia.webdriver.elements.mercury.old.JoinPageObject)3 Test (org.testng.annotations.Test)3 Navigation (com.wikia.webdriver.elements.mercury.components.Navigation)1 TopBar (com.wikia.webdriver.elements.mercury.components.TopBar)1 LoginPageObject (com.wikia.webdriver.elements.mercury.old.LoginPageObject)1 SignupPageObject (com.wikia.webdriver.elements.mercury.old.SignupPageObject)1