Examples of openConfigPanel()


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

        // Add a new static list field.
        StaticListClassFieldEditPane staticListField =
            new StaticListClassFieldEditPane(editor.addField("Static List").getName());

        // Open the configuration panel and play with the multiple selection option.
        staticListField.openConfigPanel();

        // Radio display type should disable multiple selection.
        staticListField.getMultipleSelectionCheckBox().click();
        Assert.assertTrue(staticListField.getMultipleSelectionCheckBox().isSelected());
        staticListField.getDisplayTypeSelect().selectByVisibleText("radio");
View Full Code Here

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

        // Add a new static list field.
        StaticListClassFieldEditPane staticListField =
            new StaticListClassFieldEditPane(editor.addField("Static List").getName());

        // Open the configuration panel and edit the list items.
        staticListField.openConfigPanel();
        StaticListItemsEditor itemsEditor = staticListField.getItemsEditor();

        // Remove the second option.
        itemsEditor.remove("value2");
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.UserClassFieldEditPane.openConfigPanel()

    @Test
    public void testMultipleSelection()
    {
        UserClassFieldEditPane userField = new UserClassFieldEditPane(editor.addField("User").getName());
        userField.openConfigPanel();
        userField.setMultipleSelect(true);
        userField.closeConfigPanel();
        UserPicker userPicker = userField.getUserPicker();

        // Select 2 users.
View Full Code Here

Examples of org.xwiki.appwithinminutes.test.po.UserClassFieldEditPane.openConfigPanel()

        Assert.assertEquals(1, selectedUsers.size());
        assertUserElement(selectedUsers.get(0), "Thomas Mortagne");
        Assert.assertEquals("", userPicker.getValue());

        // Enable multiple selection.
        userField.openConfigPanel();
        userField.setMultipleSelect(true);
        userField.closeConfigPanel();

        // Re-take the user picker because the display has been reloaded.
        userPicker = userField.getUserPicker();
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.