Search in sources :

Example 1 with LongTextClassFieldEditPane

use of org.xwiki.appwithinminutes.test.po.LongTextClassFieldEditPane in project xwiki-platform by xwiki.

the class ClassEditorTest method testApplyConfigurationChanges.

/**
 * Tests that the field display is updated when the configuration panel is closed.
 */
@Test
@IgnoreBrowsers({ @IgnoreBrowser(value = "internet.*", version = "8\\.*", reason = "See https://jira.xwiki.org/browse/XE-1146"), @IgnoreBrowser(value = "internet.*", version = "9\\.*", reason = "See https://jira.xwiki.org/browse/XE-1177") })
public void testApplyConfigurationChanges() {
    LongTextClassFieldEditPane longTextField = new LongTextClassFieldEditPane(editor.addField("Long Text").getName());
    longTextField.openConfigPanel();
    longTextField.setRows(3);
    longTextField.setEditor("Text");
    longTextField.closeConfigPanel();
    Assert.assertEquals(3, longTextField.getPreviewRows());
}
Also used : LongTextClassFieldEditPane(org.xwiki.appwithinminutes.test.po.LongTextClassFieldEditPane) IgnoreBrowsers(org.xwiki.test.ui.browser.IgnoreBrowsers) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 LongTextClassFieldEditPane (org.xwiki.appwithinminutes.test.po.LongTextClassFieldEditPane)1 IgnoreBrowsers (org.xwiki.test.ui.browser.IgnoreBrowsers)1