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