Package org.xwiki.appwithinminutes.test.po

Examples of org.xwiki.appwithinminutes.test.po.StaticListClassFieldEditPane.closeConfigPanel()


        staticListField.getItemByValue("value1").click();
        staticListField.getItemByValue("value3").click();

        // Change the display type to 'select'.
        staticListField.getDisplayTypeSelect().selectByVisibleText("select");
        staticListField.closeConfigPanel();

        // Assert that the field preview has been updated.
        Assert.assertEquals("select", staticListField.getPreviewInputType());
        // Assert that the selected values were preserved.
        Assert.assertEquals(Arrays.asList("value1", "value3"), staticListField.getDefaultSelectedValues());
View Full Code Here


        staticListField.setDefaultValue("value2");

        // Change the display type to 'radio'.
        staticListField.openConfigPanel();
        staticListField.getDisplayTypeSelect().selectByVisibleText("radio");
        staticListField.closeConfigPanel();
        // Assert that the field preview has been updated.
        Assert.assertEquals("radio", staticListField.getPreviewInputType());
        // Assert that the selected value was preserved.
        Assert.assertEquals("value2", staticListField.getDefaultValue());
    }
View Full Code Here

        staticListField.getDisplayTypeSelect().selectByVisibleText("select");
        staticListField.getMultipleSelectionCheckBox().click();
        Assert.assertEquals("4", staticListField.getSizeInput().getAttribute("value"));

        // Apply configuration changes and assert the result.
        staticListField.closeConfigPanel();
        // The initial second item was removed.
        Assert.assertNull(staticListField.getItemByValue("value2"));
        // We should have a new item with value "XWiki".
        staticListField.getItemByValue("XWiki").click();
        // Assert the order of the items.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.