use of com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.DetachedRegisterPage in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_004_AddingSlider.
@Test(groups = { "ArticleFeatureCRUDAnonymous_004", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_004_AddingSlider() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickSliderButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.DetachedRegisterPage in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingPhoto.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingPhoto")
public void anonCanLogInViaAuthModalWhenAddingPhoto() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject edit = base.navigateToArticleEditPage(wikiURL, articleName);
edit.clickPhotoButton();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
edit.verifyUserLoggedIn(credentials.userName10);
assertTrue(edit.isStringInURL(articleName));
assertTrue(edit.isStringInURL(URLsContent.ACTION_EDIT));
PhotoAddComponentObject addPhoto = edit.clickPhotoButton();
addPhoto.verifyAddPhotoModal();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.DetachedRegisterPage in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingVideo.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingVideo")
public void anonCanLogInViaAuthModalWhenAddingVideo() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialVideosPageObject specialPage = base.openSpecialVideoPage(wikiURL);
specialPage.clickAddAVideo();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
AddMediaModalComponentObject modal = new AddMediaModalComponentObject(driver);
modal.closeAddVideoModal();
specialPage.verifyUserLoggedIn(credentials.userName10);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.DetachedRegisterPage in project selenium-tests by Wikia.
the class SignUpTests method anonCanSignUpOnNewBaseAuthPageFromGlobalNav.
@Test(groups = "SignUp_anonCanSignUpOnNewBaseAuthPageFromGlobalNav")
public void anonCanSignUpOnNewBaseAuthPageFromGlobalNav() {
WikiBasePageObject base = new WikiBasePageObject();
NavigationBar registerLink = new NavigationBar(driver);
DetachedRegisterPage register = new DetachedRegisterPage(registerLink.clickOnRegister());
String userName = "User" + register.getTimeStamp();
String password = "Pass" + register.getTimeStamp();
String email = credentials.emailQaart2;
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);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.auth.register.DetachedRegisterPage in project selenium-tests by Wikia.
the class ForcedLoginTests method anonCanLogInViaAuthModalWhenAddingFile.
@Test(groups = "ForcedLogin_anonCanLogInViaAuthModalWhenAddingFile")
public void anonCanLogInViaAuthModalWhenAddingFile() {
WikiBasePageObject base = new WikiBasePageObject();
SpecialNewFilesPage specialPage = base.openSpecialNewFiles(wikiURL);
specialPage.verifyPageHeader(specialPage.getTitle());
specialPage.addPhoto();
DetachedSignInPage authModal = new DetachedRegisterPage().navigateToSignIn();
authModal.login(credentials.userName10, credentials.password10);
AddMediaModalComponentObject modal = new AddMediaModalComponentObject(driver);
modal.closeAddPhotoModal();
specialPage.verifyUserLoggedIn(credentials.userName10);
}
Aggregations