Examples of closeConfigPanel()


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

        dateField.openConfigPanel();
        String dateFormat = "yyyy.MM.dd";
        dateField.setDateFormat(dateFormat);

        // Close the configuration panel to refresh the date field preview.
        dateField.closeConfigPanel();

        // Select a date using the date picker.
        DatePicker datePicker = dateField.openDatePicker();
        // The current date format doesn't include time information.
        Assert.assertFalse(datePicker.hasHourSelector());
View Full Code Here

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

        LongTextClassFieldEditPane longTextField =
            new LongTextClassFieldEditPane(editor.addField("Long Text").getName());
        longTextField.openConfigPanel();
        longTextField.setRows(3);
        longTextField.setEditor("Text");
        longTextField.closeConfigPanel();
        Assert.assertEquals(3, longTextField.getPreviewRows());
    }

    /**
     * Tests that class fields can be deleted and that documents having objects of that class are updated.
View Full Code Here

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

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

        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

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

        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

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

    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.
        userPicker.sendKeys("tmortagne").waitForSuggestions().sendKeys(Keys.ENTER).waitForSuggestionsToFadeOut();
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());
View Full Code Here

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

        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();

        // Select one more user.
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.