use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class VEDisabledEditorEntryAnonTests method VEDisabledEditorEntryAnonTestsTests_008_TemplateNamespace.
@Test(groups = { "VEDisabledEditorEntryAnonTests", "VEDisabledEditorEntryAnonTestsTests_008", "templateEntry" })
public void VEDisabledEditorEntryAnonTestsTests_008_TemplateNamespace() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.TEMPLATE_PAGE);
SourceEditModePageObject src = article.openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class VEEnabledEditorEntryAnonTests method VEEnabledEditorEntryAnonTests_008_TemplateNamespace.
@Test(groups = { "VEEnabledEditorEntryAnonTests", "VEEnabledEditorEntryAnonTests_008", "templateEntry" })
public void VEEnabledEditorEntryAnonTests_008_TemplateNamespace() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.TEMPLATE_PAGE);
SourceEditModePageObject src = article.openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class RTEDisabledEditorEntryAnonTests method RTEDisabledEditorEntryAnonTests_008_TemplateNamespace.
@Test(groups = { "RTEDisabledEditorEntryAnonTests", "RTEDisabledEditorEntryAnonTests_008", "templateEntry" })
public void RTEDisabledEditorEntryAnonTests_008_TemplateNamespace() {
ArticlePageObject article = new ArticlePageObject().open(URLsContent.TEMPLATE_PAGE);
SourceEditModePageObject src = article.openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class EditingPreferencesTests method EditPreferences_003_selectSource.
@Test(groups = { "EditPreferences_003" })
@Execute(asUser = User.USER_5, onWikia = URLsContent.VE_ENABLED_WIKI)
public void EditPreferences_003_selectSource() {
EditPreferencesPage editPrefPage = new EditPreferencesPage(driver).openEditingSection();
editPrefPage.selectPreferredEditor(SOURCE);
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);
SourceEditModePageObject src = aritclePage.openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method createArticleInSrcUsingDropdown.
public SourceEditModePageObject createArticleInSrcUsingDropdown(String articleTitle) {
contributeDropdown.click();
wait.forElementVisible(addArticleInDropdown);
CreateArticleModalComponentObject articleModal = clickArticleInDropDown(addArticleInDropdown);
articleModal.createPageWithBlankLayout(articleTitle);
return new SourceEditModePageObject(driver);
}
Aggregations