use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class CreateWikiTests_lang method CreateNewWiki_lang_TC001.
@Test(dataProviderClass = CreateNewWikiDataProvider.class, dataProvider = "getLangs", groups = { "CreateNewWiki_lang_001", "CNW_lang_first" })
@Execute(asUser = User.USER_CNW)
public void CreateNewWiki_lang_TC001(String lang) {
WikiBasePageObject base = new WikiBasePageObject();
CreateNewWikiPageObjectStep1 cnw1 = base.openSpecialCreateNewWikiPage(wikiCorporateURL);
cnw1.selectLanguage(lang);
String wikiName = cnw1.getWikiName();
cnw1.typeInWikiName(wikiName);
cnw1.verifyNextButtonEnabled();
CreateNewWikiPageObjectStep2 cnw2 = cnw1.submit();
cnw2.selectCategory(CreateWikiMessages.WIKI_CATEGORY_ID);
CreateNewWikiPageObjectStep3 cnw3 = cnw2.submit();
cnw3.selectThemeByName(CreateWikiMessages.WIKI_THEME);
ArticlePageObject article = cnw3.submit();
article.verifyWikiTitleOnCongratualtionsLightBox(wikiName);
article.closeNewWikiCongratulationsLightBox();
article.verifyWikiTitleHeader(wikiName);
article.verifyUserLoggedIn(User.USER_CNW.getUserName());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ChatTestsStaff method openChatForUser.
private ChatPage openChatForUser(String userName, String password) {
WikiBasePageObject base = new WikiBasePageObject();
base.loginAs(userName, password, wikiURL);
return new ChatPage().open();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class FacebookButtonTests method facebookButtonIsVisibleOnLoginPage.
@Test(groups = "FacebookButton_facebookButtonIsVisibleOnLoginPage")
public void facebookButtonIsVisibleOnLoginPage() {
WikiBasePageObject base = new WikiBasePageObject();
AttachedSignInPage signInPage = base.openSpecialUserLogin(wikiURL);
assertTrue(signInPage.isConnectWithFacebookButtonVisible());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class FacebookTests method userCanSignUpViaFacebook.
@Test(groups = "Facebook_userCanSignUpViaFacebook")
public void userCanSignUpViaFacebook() {
GraphApi api = new GraphApi();
HashMap<String, String> test_user = api.createFacebookTestUser(wikiaProductionAppId);
new FacebookSettingsPageObject(driver).open();
new FacebookMainPageObject(driver).login(test_user.get("email"), test_user.get("password"));
AttachedRegisterPage signUp = new AttachedRegisterPage().open();
FacebookSignupModalComponentObject fbModal = signUp.clickFacebookSignUp();
String userName = "QA" + signUp.getTimeStamp();
String password = "Pass" + signUp.getTimeStamp();
fbModal.createAccountNoEmail(test_user.get("email"), userName, password);
new WikiBasePageObject().verifyUserLoggedIn(userName);
api.deleteFacebookTestUser(test_user.get("id"));
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class PinTypeMapTests method PinTypeMapTests_001_VerifyImageValidationInPinTypeModal.
@Test(groups = { "PinTypeMapTests_001", "PinTypeMapTests", "InteractiveMaps" })
@DontRun(env = { "dev", "sandbox", "preview" })
@Execute(asUser = User.USER)
@RelatedIssue(issueID = "QAART-690", comment = "functionality status is deprecated, " + "monitor the issue to find out resolution")
public void PinTypeMapTests_001_VerifyImageValidationInPinTypeModal() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEditPinTypesButton();
CreatePinTypesComponentObject pinTypeModal = new CreatePinTypesComponentObject(driver);
pinTypeModal.verifyPinTypesDialog();
pinTypeModal.selectFileToUpload(PageContent.SMALLFILE, "Small image");
pinTypeModal.verifyErrorExists();
pinTypeModal.selectFileToUpload(PageContent.BROKENEXTENSIONFILE, "Image with wrong extension");
pinTypeModal.verifyErrorExists();
}
Aggregations