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);
}
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();
}
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();
}
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);
}
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);
}
Aggregations