Search in sources :

Example 1 with TemplateClassification

use of com.wikia.webdriver.elements.oasis.components.templateclassificiation.TemplateClassification in project selenium-tests by Wikia.

the class TemplateClassificationTest method templateClassification_createTemplateAndChangeItsType.

@Test(groups = "templateClassification_createTemplateAndChangeItsType")
public void templateClassification_createTemplateAndChangeItsType() {
    TemplatePage templatePage = new TemplatePage().createTemplate(DEFAULT_TEMPLATE_NAME).open(DEFAULT_TEMPLATE_NAME);
    TemplateClassification templateClassification = templatePage.getTemplateClassification();
    templateClassification.open().resetTemplateType().save();
    String oldTemplateType = templateClassification.getTemplateType();
    Assertion.assertEquals(templateClassification.getTemplateType(), TemplateTypes.UNKNOWN.getType());
    templateClassification.open().changeTemplateType(TemplateTypes.INFOBOX).save();
    Assertion.assertEquals(templateClassification.getTemplateType(), TemplateTypes.INFOBOX.getType());
    templateClassification.open().changeTemplateType(TemplateTypes.QUOTE).save();
    String currentTemplateType = templateClassification.getTemplateType();
    Assertion.assertNotEquals(currentTemplateType, oldTemplateType);
}
Also used : TemplateClassification(com.wikia.webdriver.elements.oasis.components.templateclassificiation.TemplateClassification) TemplatePage(com.wikia.webdriver.elements.oasis.pages.TemplatePage) Test(org.testng.annotations.Test)

Aggregations

TemplateClassification (com.wikia.webdriver.elements.oasis.components.templateclassificiation.TemplateClassification)1 TemplatePage (com.wikia.webdriver.elements.oasis.pages.TemplatePage)1 Test (org.testng.annotations.Test)1