Closed (fixed)
Project:
Select A11y NG
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2026 at 20:25 UTC
Updated:
31 Mar 2026 at 22:30 UTC
Jump to comment: Most recent
The select_a11y_ng module suite currently has no automated test coverage at all. This makes it difficult to ensure correctness when refactoring or adding new features.
Add comprehensive test coverage across the module suite:
select_a11y_ng form element renders correctly (single and multiple select)Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #5
mably commentedComment #7
mably commentedMerged. Here is a summary of the changes:
14 files added, 1,525 lines — adds comprehensive test coverage across the entire module suite.
Main module (select_a11y_ng)
SelectA11yNGElementTest— 8 kernel tests: form element rendering, single/multiple select, placeholder, custom settings, form submission, valueCallback with target_id.SelectA11yNGWidgetTest— 3 kernel tests: field widget default settings, custom settings, settings summary.SelectA11yNGJavascriptTest— 5 FunctionalJavascript tests: widget initialization, single/multiple select, config attribute, search disabled.SelectA11yNGFieldWidgetTest— 2 FunctionalJavascript tests: field widget rendering on node form, node creation with value saved.select_a11y_ng_test— test module providing a form at/select-a11y-ng-test-form.select_a11y_ng_bef
BefWidgetTest— 4 kernel tests: filter/sort plugin discovery, default configs.BefWidgetJavascriptTest— 2 FunctionalJavascript tests: filter widget renders with config, sort widget renders with search disabled.select_a11y_ng_facets
FacetsWidgetTest— 3 kernel tests: plugin discovery, default config, theme hook registration.FacetsWidgetJavascriptTest— 1 FunctionalJavascript test: facet widget renders select with options.select_a11y_ng_webform
WebformHooksTest— 6 kernel tests: hook alterations, element conversion, skip conditions, conflicting library removal.WebformWidgetJavascriptTest— 1 FunctionalJavascript test: webform element renders with widget and config.Also adds
drupal/search_apitorequire-dev(needed by facets FunctionalJavascript test).