Search in sources :

Example 1 with SignupPageObject

use of com.wikia.webdriver.elements.mercury.old.SignupPageObject 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 SignupPageObject

use of com.wikia.webdriver.elements.mercury.old.SignupPageObject in project selenium-tests by Wikia.

the class LoginTestsOld method MercuryLoginTest_007_registerNowLinkWorks.

@Test(groups = { "MercuryLoginTest_007", "Mercury_LoginTests_002" })
public void MercuryLoginTest_007_registerNowLinkWorks() {
    SignupPageObject registrationPage = new SignupPageObject(driver);
    registrationPage.openRegisterPage();
    String expectedHeader = registrationPage.getRegisterHeaderText();
    LoginPageObject loginPageObject = new LoginPageObject(driver).get();
    loginPageObject.clickOnRegisterLink();
    String currentHeader = registrationPage.getRegisterHeaderText();
    Assertion.assertEquals(expectedHeader, currentHeader);
}
Also used : SignupPageObject(com.wikia.webdriver.elements.mercury.old.SignupPageObject) LoginPageObject(com.wikia.webdriver.elements.mercury.old.LoginPageObject) Test(org.testng.annotations.Test)

Aggregations

SignupPageObject (com.wikia.webdriver.elements.mercury.old.SignupPageObject)2 Test (org.testng.annotations.Test)2 JoinPageObject (com.wikia.webdriver.elements.mercury.old.JoinPageObject)1 LoginPageObject (com.wikia.webdriver.elements.mercury.old.LoginPageObject)1