Search in sources :

Example 1 with SpecialThemeDesignerPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject in project selenium-tests by Wikia.

the class PortableInfoboxTests method insertInfoboxWithParamsInVEusingDarkTheme.

@Test(groups = { "PortableInfoboxTests", "PortableInfobox_003" })
@Execute(asUser = User.STAFF)
public void insertInfoboxWithParamsInVEusingDarkTheme() {
    new ArticleContent().clear();
    ArticlePageObject article = new ArticlePageObject();
    SpecialThemeDesignerPageObject theme = new SpecialThemeDesignerPageObject(driver);
    theme.openSpecialDesignerPage(wikiURL).selectTheme(3);
    theme.submitTheme();
    article.open();
    new ArticlePurger().purgeArticleAsLoggedUser();
    VisualEditorPageObject visualEditor = article.openVEModeWithMainEditButton().clickInsertToolButton().clickInsertInfoboxFromInsertToolMenu().selectInfoboxTemplate(2).typeInParameterField(0, new SourceEditModePageObject(driver).getRandomDigits(5)).applyChanges();
    Assertion.assertTrue(visualEditor.isInfoboxInsertedInEditorArea());
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) ArticlePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject) SourceEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject) VisualEditorPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject) ArticlePurger(com.wikia.webdriver.common.core.helpers.ArticlePurger) SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 2 with SpecialThemeDesignerPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject in project selenium-tests by Wikia.

the class ThemeDesigner method verifyWordmarkTabElements.

@Test(groups = { "ThemeDesigner006", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void verifyWordmarkTabElements() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.WORDMARK);
    designer.verifyWordmarkTab();
}
Also used : SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 3 with SpecialThemeDesignerPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject in project selenium-tests by Wikia.

the class ThemeDesigner method selectThemeFromThirdSet.

@Test(groups = { "ThemeDesigner003", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void selectThemeFromThirdSet() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.THEME);
    themeName = designer.selectTheme(10);
    designer.verifyThemeSelected(themeName);
}
Also used : SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 4 with SpecialThemeDesignerPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject in project selenium-tests by Wikia.

the class ThemeDesigner method closeColorDialogWithOutsideClick.

/**
   * https://wikia-inc.atlassian.net/browse/DAR-1194
   * color choice dialog closes on click outside of the dialog
   */
@Test(groups = { "ThemeDesigner007", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void closeColorDialogWithOutsideClick() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.CUSTOMIZE);
    designer.openImagePicker();
    designer.clickOutsideImagePicker();
    designer.verifyImagePickerDisappeared();
}
Also used : SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 5 with SpecialThemeDesignerPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject in project selenium-tests by Wikia.

the class PortableInfoboxTests method verifyInfoboxLayoutChange.

@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
@Execute(asUser = User.STAFF)
public void verifyInfoboxLayoutChange() {
    new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
    new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
    PortableInfobox infobox = new PortableInfobox();
    SpecialThemeDesignerPageObject theme = new SpecialThemeDesignerPageObject(driver);
    theme.openSpecialDesignerPage(wikiURL).selectTheme(4);
    theme.submitTheme();
    infobox.open(PageContent.INFOBOX_2);
    new ArticlePurger().purgeArticleAsLoggedUser();
    String oldBackground = infobox.getBackgroundColor();
    theme.openSpecialDesignerPage(wikiURL).selectTheme(1);
    theme.submitTheme();
    infobox.open(PageContent.INFOBOX_2);
    new ArticlePurger().purgeArticleAsLoggedUser();
    Assertion.assertNotEquals(oldBackground, infobox.getBackgroundColor());
}
Also used : ArticleContent(com.wikia.webdriver.common.core.api.ArticleContent) TemplateContent(com.wikia.webdriver.common.core.api.TemplateContent) ArticlePurger(com.wikia.webdriver.common.core.helpers.ArticlePurger) PortableInfobox(com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox) SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Aggregations

Execute (com.wikia.webdriver.common.core.annotations.Execute)10 SpecialThemeDesignerPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject)10 Test (org.testng.annotations.Test)10 ArticleContent (com.wikia.webdriver.common.core.api.ArticleContent)2 ArticlePurger (com.wikia.webdriver.common.core.helpers.ArticlePurger)2 TemplateContent (com.wikia.webdriver.common.core.api.TemplateContent)1 InfoboxBuilderPage (com.wikia.webdriver.elements.mercury.pages.InfoboxBuilderPage)1 TemplatePage (com.wikia.webdriver.elements.oasis.pages.TemplatePage)1 WikiFeatures (com.wikia.webdriver.elements.oasis.pages.WikiFeatures)1 PortableInfobox (com.wikia.webdriver.pageobjectsfactory.pageobject.PortableInfobox)1 ArticlePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.ArticlePageObject)1 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)1 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)1