use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class WikiBasePageObject method openCKModeWithSectionEditButton.
public VisualEditModePageObject openCKModeWithSectionEditButton(int section) {
WebElement sectionEditButton = sectionEditButtons.get(section);
wait.forElementVisible(sectionEditButton);
sectionEditButton.click();
PageObjectLogging.log("openCKModeWithSectionEditButton", "RTE edit button clicked at section: " + section, true, driver);
return new VisualEditModePageObject();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class EditingPreferencesTests method EditPreferences_002_selectCK.
@Test(groups = { "EditPreferences_002" })
@Execute(asUser = User.USER_5, onWikia = URLsContent.VE_ENABLED_WIKI)
@RelatedIssue(issueID = "MAIN-9722", comment = "test failing randomly")
public void EditPreferences_002_selectCK() {
EditPreferencesPage editPrefPage = new EditPreferencesPage(driver).openEditingSection();
editPrefPage.selectPreferredEditor(CK);
PreferencesPageObject prefPage = editPrefPage.clickSaveButton();
List<Notification> confirmNotifications = prefPage.getNotifications(NotificationType.CONFIRM);
Assertion.assertEquals(confirmNotifications.size(), 1, PreferencesPageObject.AssertionMessages.INVALID_NUMBER_OF_CONFIRMING_NOTIFICATIONS);
Assertion.assertTrue(confirmNotifications.stream().findFirst().get().isVisible(), PreferencesPageObject.AssertionMessages.BANNER_NOTIFICATION_NOT_VISIBLE);
String articleName = PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis();
ArticlePageObject aritclePage = new ArticlePageObject().open(articleName);
VisualEditModePageObject ck = aritclePage.navigateToArticleEditPage();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class UserAndRights method blockedUserShouldSeeMessageOnArticleEdit.
@Test(groups = { "usersAndRights002" }, dependsOnMethods = { "staffCanBlockUser" })
@Execute(asUser = User.BLOCKED_USER)
public void blockedUserShouldSeeMessageOnArticleEdit() {
VisualEditModePageObject edit = new WikiBasePageObject().goToArticleDefaultContentEditPage(wikiURL, PageContent.ARTICLE_NAME_PREFIX + DateTime.now().getMillis());
edit.verifyUserLoggedIn(User.BLOCKED_USER);
edit.verifyBlockedUserMessage();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_003_AddingSlideshow.
@Test(groups = { "ArticleFeatureCRUDAnonymous_003", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_003_AddingSlideshow() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickSlideshowButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject in project selenium-tests by Wikia.
the class ArticleFeaturesCRUDTestsAnon method ArticleCRUDAnonymous_001_AddingImage.
@Test(groups = { "ArticleFeatureCRUDAnonymous_001", "ArticleFeaturesCRUDAnon" })
public void ArticleCRUDAnonymous_001_AddingImage() {
ArticlePageObject article = new ArticlePageObject().open(articleName);
VisualEditModePageObject visualEditMode = article.navigateToArticleEditPage();
visualEditMode.clickPhotoButton();
DetachedRegisterPage auth = new DetachedRegisterPage();
assertTrue(auth.isDisplayed());
}
Aggregations