Examples of waitForSuggestionsToFadeOut()


Examples of org.xwiki.test.ui.po.editor.UserPicker.waitForSuggestionsToFadeOut()

    {
        UserPicker userPicker = new UserClassFieldEditPane(editor.addField("User").getName()).getUserPicker();

        // Use the keyboard.
        userPicker.sendKeys("mor").waitForSuggestions().sendKeys(Keys.ARROW_DOWN, Keys.ARROW_DOWN, Keys.ENTER);
        List<UserElement> selectedUsers = userPicker.waitForSuggestionsToFadeOut().getAcceptedSuggestions();
        Assert.assertEquals(1, selectedUsers.size());
        assertUserElement(selectedUsers.get(0), "Thomas Mortagne");
        Assert.assertEquals("", userPicker.getValue());
        // The link to clear the list of selected users should be displayed if at least 2 users are selected.
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.UserPicker.waitForSuggestionsToFadeOut()

        // The link to clear the list of selected users should be displayed if at least 2 users are selected.
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());

        // Use the mouse. Since we have single selection by default, the previously selected user should be replaced.
        userPicker.sendKeys("mor").waitForSuggestions().select("Enygma2002");
        selectedUsers = userPicker.waitForSuggestionsToFadeOut().getAcceptedSuggestions();
        Assert.assertEquals(1, selectedUsers.size());
        assertUserElement(selectedUsers.get(0), "Eduard Moraru", "Enygma2002");
        Assert.assertEquals("", userPicker.getValue());
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.UserPicker.waitForSuggestionsToFadeOut()

        Assert.assertEquals(0, userPicker.getAcceptedSuggestions().size());
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());

        // When there is only one suggestion, Enter key should select it.
        userPicker.sendKeys("admin").waitForSuggestions().sendKeys(Keys.ENTER);
        selectedUsers = userPicker.waitForSuggestionsToFadeOut().getAcceptedSuggestions();
        Assert.assertEquals(1, selectedUsers.size());
        assertUserElement(selectedUsers.get(0), "Administrator", "Admin", "noavatar.png");
        Assert.assertEquals("", userPicker.getValue());
        Assert.assertFalse(userPicker.getClearSelectionLink().isDisplayed());
    }
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.