Search in sources :

Example 6 with SpecialThemeDesignerPageObject

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

the class InfoboxBuilderTests method verifyInfoboxPreviewTheme.

@Test(groups = { "InfoboxBuilderTests", "InfoboxBuilder_002" })
@Execute(asUser = User.STAFF)
public void verifyInfoboxPreviewTheme() {
    InfoboxBuilderPage builderPage = new InfoboxBuilderPage();
    SpecialThemeDesignerPageObject themeDesigner = new SpecialThemeDesignerPageObject(driver);
    TemplatePage template = new TemplatePage();
    new WikiFeatures().openWikiFeatures(wikiURL).enableEuropaInfoboxTheme();
    themeDesigner.openSpecialDesignerPage(wikiURL).selectTheme(0);
    themeDesigner.submitTheme();
    String templateBgColor = template.open(PageContent.INFOBOX_2).getPageBackgroundColor();
    String previewBgColor = builderPage.openExisting("InfoboxBuilderVerifyInfoboxTheme").getPreviewBackgroundColor();
    Assertion.assertEquals(previewBgColor, templateBgColor);
    themeDesigner.openSpecialDesignerPage(wikiURL).selectTheme(2);
    themeDesigner.submitTheme();
    templateBgColor = template.open(PageContent.INFOBOX_2).getPageBackgroundColor();
    previewBgColor = builderPage.openExisting("InfoboxBuilderVerifyInfoboxTheme").getPreviewBackgroundColor();
    Assertion.assertEquals(templateBgColor, previewBgColor);
}
Also used : TemplatePage(com.wikia.webdriver.elements.oasis.pages.TemplatePage) SpecialThemeDesignerPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.special.themedesigner.SpecialThemeDesignerPageObject) WikiFeatures(com.wikia.webdriver.elements.oasis.pages.WikiFeatures) InfoboxBuilderPage(com.wikia.webdriver.elements.mercury.pages.InfoboxBuilderPage) Execute(com.wikia.webdriver.common.core.annotations.Execute) Test(org.testng.annotations.Test)

Example 7 with SpecialThemeDesignerPageObject

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

the class ThemeDesigner method verifyCustomizeTabElements.

@Test(groups = { "ThemeDesigner005", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void verifyCustomizeTabElements() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.CUSTOMIZE);
    designer.openImagePicker();
    designer.uploadLargeImage();
    designer.verifyCustomizeTab();
}
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 8 with SpecialThemeDesignerPageObject

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

the class ThemeDesigner method submitSelectedTheme.

@Test(groups = { "ThemeDesigner004", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void submitSelectedTheme() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.THEME);
    themeName = designer.selectTheme(1);
    designer.verifyThemeSelected(themeName);
    designer.submitTheme();
}
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 9 with SpecialThemeDesignerPageObject

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

the class ThemeDesigner method selectThemeFromFirstSet.

@Test(groups = { "ThemeDesigner001", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void selectThemeFromFirstSet() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.THEME);
    themeName = designer.selectTheme(3);
    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 10 with SpecialThemeDesignerPageObject

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

the class ThemeDesigner method selectThemeFromSecondSet.

@Test(groups = { "ThemeDesigner002", "ThemeDesigner" })
@Execute(asUser = User.STAFF)
public void selectThemeFromSecondSet() {
    SpecialThemeDesignerPageObject designer = new SpecialThemeDesignerPageObject(driver);
    designer.openSpecialDesignerPage(wikiURL);
    designer.selectTab(Tab.THEME);
    themeName = designer.selectTheme(6);
    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)

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