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

Use the rich text area page object to run quick actions in the CKEditor functional tests

    XMLWordPrintable

Details

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

    Description

      Functional tests using CKEditor quick actions (slash commands) hand-code the same sequence each time: type the query, create an AutocompleteDropdown, waitForItemSelected(), press Enter, waitForItemSubmitted(), and then, for a macro, wait for the content to be re-rendered (often implicitly, by re-creating the rich text area page object with editor.getRichTextArea()).

      The tests should use the RichTextAreaElement APIs added in XWIKI-25221 instead (executeQuickAction(), insertMacro(), insertMacroWithRequiredParameters()), so that the waits are done by the page objects.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: