use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class SignUpTests method userCanLoginWithoutConfirmingVerificationEmail.
@Test(groups = "SignUp_userCanLoginWithoutConfirmingVerificationEmail")
public void userCanLoginWithoutConfirmingVerificationEmail() {
WikiBasePageObject base = new WikiBasePageObject();
AttachedRegisterPage signUp = base.openSpecialUserSignUpPage(wikiURL);
String userName = "User" + signUp.getTimeStamp();
String password = "Pass" + signUp.getTimeStamp();
String email = credentials.emailQaart2;
AttachedRegisterPage register = new AttachedRegisterPage();
register.typeEmailAddress(email);
register.typeUsername(userName);
register.typePassword(password);
register.typeBirthdate(PageContent.WIKI_SIGN_UP_BIRTHMONTH, PageContent.WIKI_SIGN_UP_BIRTHDAY, PageContent.WIKI_SIGN_UP_BIRTHYEAR);
register.submit();
base.verifyUserLoggedIn(userName);
base.logoutFromAnywhere();
NavigationBar signInLink = new NavigationBar(driver);
DetachedSignInPage page = new DetachedSignInPage(signInLink.clickOnSignIn());
page.login(userName, password);
base.verifyUserLoggedIn(userName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class PromoteTests method PromoteTests_001_changePromoteElements.
@Test(groups = { "PromoteTests_001", "PromoteTests" })
public void PromoteTests_001_changePromoteElements() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameStaff, credentials.passwordStaff, wikiURL);
SpecialPromotePageObject promote = base.openSpecialPromotePage(wikiURL);
promote.typeIntoHeadline(PageContent.LOREM_IPSUM_SHORT);
promote.typeIntoDescription(PageContent.LOREM_IPSUM_LONG);
promote.uploadThumbnailImage(PageContent.FILEPNG);
promote.verifyUploadedImage(PageContent.FILEPNG);
promote.modifyThumnailImage(PageContent.FILE2PNG);
promote.verifyUploadedImage(PageContent.FILE2PNG);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class UnderTheHoodPreferencesTests method UnderTheHoodPreference_001_Use_advanced_recent_changes.
@Test(groups = { "UnderTheHoodPreferencesTest", "UnderTheHoodPreference_001" })
@Execute(asUser = User.USER_5, onWikia = URLsContent.VE_ENABLED_WIKI)
public void UnderTheHoodPreference_001_Use_advanced_recent_changes() {
PreferencesPageObject preferences = new WikiBasePageObject().openSpecialPreferencesPage(wikiURL);
preferences.setAdvancedRecentChangesCheckboxValueToDefaultUnchecked().setAdvancedRecentChangesCheckbox().clickSaveButton();
Assertion.assertTrue(preferences.getAdvancedRecentChangesCheckboxValue());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class UserAndRights method unblockedUserCanEditUser.
@Test(groups = { "usersAndRights005" }, dependsOnMethods = { "staffCanUnblockUser" })
public void unblockedUserCanEditUser() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userNameBlocked, credentials.passwordBlocked, wikiURL);
String title = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject edit = base.navigateToArticleEditPage(wikiURL, PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp());
edit.clearContent();
edit.addContent(String.valueOf(DateTime.now().getMillis()));
edit.submitArticle().verifyArticleTitle(title);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class MessageWallNotificationsFollowersResponseTests method followerNotificationResponse_setup_4.
@Test(groups = { "MessageWallNotificationsFollowersResponseTests_004" }, dependsOnMethods = "followerNotificationResponse_setup_3")
public void followerNotificationResponse_setup_4() {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(credentials.userName8, credentials.password8, wikiURL);
MessageWall wall = new MessageWall(driver).open(credentials.userName8);
MessageWallThreadPageObject thread = wall.openThread(title);
MiniEditorComponentObject miniReply = thread.triggerMessageArea();
String reply = PageContent.MESSAGE_WALL_QUOTE_PREFIX + wall.getTimeStamp();
miniReply.switchAndWrite(reply);
thread.submitQuote();
thread.verifyLastReply(credentials.userName8, reply);
}
Aggregations