Search in sources :

Example 81 with WikiBasePageObject

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);
}
Also used : NavigationBar(com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) DetachedSignInPage(com.wikia.webdriver.pageobjectsfactory.pageobject.auth.signin.DetachedSignInPage) AttachedRegisterPage(com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.AttachedRegisterPage) Test(org.testng.annotations.Test)

Example 82 with WikiBasePageObject

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);
}
Also used : SpecialPromotePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialPromotePageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 83 with WikiBasePageObject

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());
}
Also used : PreferencesPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.preferences.PreferencesPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 84 with WikiBasePageObject

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);
}
Also used : VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 85 with WikiBasePageObject

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);
}
Also used : MessageWall(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall) MiniEditorComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject) MessageWallThreadPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWallThreadPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Aggregations

WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)174 Test (org.testng.annotations.Test)162 Execute (com.wikia.webdriver.common.core.annotations.Execute)72 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)39 InteractiveMapsPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapsPageObject)38 InteractiveMapPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.interactivemaps.InteractiveMapPageObject)30 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)24 DontRun (com.wikia.webdriver.common.core.annotations.DontRun)23 VisualEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject)21 BlogPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.wikipage.blog.BlogPageObject)17 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)14 MiniEditorComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.minieditor.MiniEditorComponentObject)13 CreateAMapComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreateAMapComponentObject)12 MessageWall (com.wikia.webdriver.pageobjectsfactory.pageobject.messagewall.MessageWall)12 NavigationBar (com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar)11 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)11 CreatePinTypesComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.CreatePinTypesComponentObject)10 UserProfilePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.UserProfilePageObject)10 SpecialCreatePage (com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialCreatePage)10 DetachedSignInPage (com.wikia.webdriver.pageobjectsfactory.pageobject.auth.signin.DetachedSignInPage)9