Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25225

Make the suggest input page object wait for the suggestions matching the typed text before selecting or listing them

    XMLWordPrintable

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      Functional tests using a suggest input (page, user, template pickers etc.) have to call waitForSuggestions() or waitForNonTypedSuggestions() after typing and before selecting a suggestion or reading the suggestions, otherwise they may act on the suggestions of a previous query and flicker.

      SuggestInputElement should do this wait itself: selectByIndex(), selectByValue(), selectByVisibleText() and getSuggestions() / getSuggestedValues() should wait for the suggestions matching the text typed since the suggestions were last waited for. The explicit waits can then be removed from the tests.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: