Search in sources :

Example 1 with CreateUser

use of com.wikia.webdriver.common.users.CreateUser in project selenium-tests by Wikia.

the class SignupTests method MercurySignupTest_006_japaneseUserSignup.

@Test(groups = "MercurySignupTest_006")
@Execute(onWikia = "ja.ja-test")
public void MercurySignupTest_006_japaneseUserSignup() {
    init();
    String japanName = "ユーザー" + DateTime.now().getMillis();
    String japanPAssword = "ユーザザー" + DateTime.now().getMillis();
    signUp(new CreateUser().withName(japanName).withPass(japanPAssword).create()).verifyAvatarAfterSignup();
}
Also used : CreateUser(com.wikia.webdriver.common.users.CreateUser) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 2 with CreateUser

use of com.wikia.webdriver.common.users.CreateUser in project selenium-tests by Wikia.

the class SignupTests method MercurySignupTest_004_signupErrorBadPassword.

@Test(groups = "MercurySignupTest_004")
public void MercurySignupTest_004_signupErrorBadPassword() {
    init();
    String random = "User" + DateTime.now().getMillis();
    signUp(new CreateUser().withName(random).withPass(random).create()).verifyPasswordError();
}
Also used : CreateUser(com.wikia.webdriver.common.users.CreateUser) Test(org.testng.annotations.Test)

Example 3 with CreateUser

use of com.wikia.webdriver.common.users.CreateUser in project selenium-tests by Wikia.

the class SignupTests method MercurySignupTest_001_successfulSignup.

@Test(groups = "MercurySignupTest_001")
public void MercurySignupTest_001_successfulSignup() {
    init();
    signUp(new CreateUser().create()).verifyAvatarAfterSignup();
}
Also used : CreateUser(com.wikia.webdriver.common.users.CreateUser) Test(org.testng.annotations.Test)

Example 4 with CreateUser

use of com.wikia.webdriver.common.users.CreateUser in project selenium-tests by Wikia.

the class SignupTests method MercurySignupTest_005_signupErrorTooYoungUser.

@Test(groups = "MercurySignupTest_005")
public void MercurySignupTest_005_signupErrorTooYoungUser() {
    init();
    DateTime wrongBirthDate = new DateTime(2009, 12, 12, 12, 0, 0);
    signUp(new CreateUser().withBirthday(wrongBirthDate).create()).verifyBirthdateError();
}
Also used : CreateUser(com.wikia.webdriver.common.users.CreateUser) DateTime(org.joda.time.DateTime) Test(org.testng.annotations.Test)

Aggregations

CreateUser (com.wikia.webdriver.common.users.CreateUser)4 Test (org.testng.annotations.Test)4 Execute (com.wikia.webdriver.common.core.annotations.Execute)1 DateTime (org.joda.time.DateTime)1