Issue #3579873: Add test coverage

Add kernel and FunctionalJavascript tests for the main module:

Kernel tests:

  • SelectA11yNGElementTest: form element rendering, single/multiple select, placeholder, custom settings, form submission, valueCallback with target_id array structure.
  • SelectA11yNGWidgetTest: field widget default settings, custom settings, settings summary.

FunctionalJavascript tests:

  • SelectA11yNGJavascriptTest: widget JS initialization, single and multiple select value submission, config data attribute, search disabled option.
  • SelectA11yNGFieldWidgetTest: field widget rendering on node form, node creation with correct field value saved.

Also adds a select_a11y_ng_test module providing a test form.

Closes #3579873

Merge request reports

Loading