use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject 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.WikiBasePageObject in project selenium-tests by Wikia.
the class CategoriesTestsEditMode method CategoriesTestsArticleEdit_003_anonSuggestions.
@Test(groups = { "CategoriesTestsArticleEdit_003", "CategoriesTestsArticleEditMode" })
public void CategoriesTestsArticleEdit_003_anonSuggestions() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
VisualEditModePageObject visual = base.navigateToArticleEditPage(wikiURL, articleName);
visual.typeCategoryName(PageContent.CATEGORY_NAME_PREFIX);
visual.triggerCategorySuggestions();
String categoryName = visual.selectCategorySuggestions(1);
visual.verifyCategoryPresent(categoryName);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_010_Signature.
@Test(groups = { "RTE_extended_2", "RTE_extended_010" })
public void RTE_010_Signature() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.clickSignature();
Assertion.assertEquals(source.getSourceContent(), "--~~~~");
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_018_MoreWikiMarkupTools.
@Test(groups = { "RTE_extended_3", "RTE_extended_018" })
public void RTE_018_MoreWikiMarkupTools() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
source.checkWikiMarkupTools();
source.submitArticle();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject in project selenium-tests by Wikia.
the class ArticleSourceModeTests method RTE_021_YoutubeTag_Publish.
@CreationTicket(ticketID = "CONCF-626")
@Test(groups = { "RTE_extended_4", "RTE_extended_021" })
public void RTE_021_YoutubeTag_Publish() {
WikiBasePageObject base = new WikiBasePageObject();
String articleName = PageContent.ARTICLE_NAME_PREFIX + base.getTimeStamp();
ArticlePageObject article = new ArticlePageObject().open(articleName);
SourceEditModePageObject source = article.openCurrectArticleSourceMode();
YoutubeVideo video = YoutubeVideoProvider.getLatestVideoForQuery("water");
String videoID = video.getID();
source.addContentInSourceMode("<youtube>\n" + videoID + "\n</youtube>");
article = source.clickPublishButton();
article.verifyArticleTitle(articleName);
}
Aggregations