use of com.wikia.webdriver.elements.oasis.pages.TemplateEditPage in project selenium-tests by Wikia.
the class InfoboxBuilderTests method verifyGoToSourceEditorNonEditedInfobox.
@Test(groups = { "InfoboxBuilderTests", "InfoboxBuilder_003" })
@Execute(asUser = User.USER)
public void verifyGoToSourceEditorNonEditedInfobox() {
new InfoboxBuilderPage().openExisting("InfoboxBuilderSavingTemplate");
new Sidebar().clickGoToSourceButton();
Assertion.assertTrue(new TemplateEditPage().isEditAreaDisplayed());
Assertion.assertTrue(driver.getCurrentUrl().contains("InfoboxBuilderSavingTemplate"));
}
use of com.wikia.webdriver.elements.oasis.pages.TemplateEditPage in project selenium-tests by Wikia.
the class InfoboxBuilderTests method verifyGoToSourceEditorSaveChanges.
@Test(groups = { "InfoboxBuilderTests", "InfoboxBuilder_003" })
@Execute(asUser = User.USER)
public void verifyGoToSourceEditorSaveChanges() {
Sidebar builderSidebar = new Sidebar();
InfoboxBuilderPage builderPage = new InfoboxBuilderPage().openExisting("Infobox_verify_go_to_source_save_changes");
builderSidebar.addRowComponent();
builderPage.selectRowWithIndex(1);
builderSidebar.clickDeleteButton().clickGoToSourceButton();
Assertion.assertTrue(builderPage.isGoToSourceModalPresent());
builderPage.clickSaveChangesButton();
TemplateEditPage template = new TemplateEditPage();
Assert.assertTrue(template.isEditAreaDisplayed());
Assert.assertFalse(template.isEditAreaEmpty());
}
use of com.wikia.webdriver.elements.oasis.pages.TemplateEditPage in project selenium-tests by Wikia.
the class InfoboxBuilderTests method verifyBuilderAuthentication.
@Test(groups = { "InfoboxBuilderTests", "InfoboxBuilder_004" })
@Execute(asUser = User.ANONYMOUS)
public void verifyBuilderAuthentication() {
TemplateEditPage template = new TemplateEditPage().open("InfoboxBuilderAuthentication");
Assertion.assertTrue(template.isPermissionErrorDisplayed());
}
use of com.wikia.webdriver.elements.oasis.pages.TemplateEditPage in project selenium-tests by Wikia.
the class InfoboxBuilderTests method verifyGoToSourceEditorDropChanges.
@Test(groups = { "InfoboxBuilderTests", "InfoboxBuilder_003" })
@Execute(asUser = User.USER)
public void verifyGoToSourceEditorDropChanges() {
InfoboxBuilderPage builderPage = new InfoboxBuilderPage().openNew("Infobox_verify_go_to_source_drop_changes");
new Sidebar().clickGoToSourceButton();
Assertion.assertTrue(builderPage.isGoToSourceModalPresent());
builderPage.clickDropChangesButton();
TemplateEditPage template = new TemplateEditPage();
template.getTemplateClassification().changeTemplateType(TemplateTypes.INFOBOX).clickAddButton();
Assertion.assertTrue(template.isEditAreaDisplayed());
Assertion.assertTrue(template.isEditAreaEmpty());
}
use of com.wikia.webdriver.elements.oasis.pages.TemplateEditPage in project selenium-tests by Wikia.
the class InfoboxBuilderPage method open.
public InfoboxBuilderPage open() {
new TemplateEditPage().open("temp_template");
getUrl(String.format("%s%s", urlBuilder.getUrlForWiki(), URLsContent.SPECIAL_INFOBOX_BUILDER));
driver.switchTo().frame(builderIFrame);
wait.forElementVisible(previewArea);
return this;
}
Aggregations