o365_sharepoint_field: add JS test for the autocomplete-select behavior

  • Declare the missing core/jquery, core/drupal and core/drupalSettings dependencies on the o365_sharepoint_field/autocomplete library; the behavior used these globals without declaring them.
  • Add a FunctionalJavascript test covering the autocomplete-select behavior: selecting a result copies hitId/driveId into the hidden fields.
  • Add a hidden (hidden: true) test-support module that renders the widget markup without requiring an active Microsoft 365 login, so the client-side behavior can be tested in isolation.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Closes #3610574

Merge request reports

Loading