This ticket documents a bug fix for the ComboBox component and the corresponding updates to its Playwright test file.
Component Bug Fix
A critical bug was fixed in src/form/field/ComboBox.mjs within the updateTypeAheadValue() method. A shadowed match variable was causing the forceSelection logic to fail on blur by incorrectly clearing the activeRecordId.
Test File Updates
To align with the correct component behavior and fix pre-existing issues, several changes were made to test/playwright/component/form/field/ComboBox.spec.mjs:
Editable Test: Updated to correctly test the behavior for editable: false, where the first item is now activated immediately when the picker is opened.
Keyboard navigation Test: A failing assertion that checked for [aria-selected="true"] on a hidden element was removed.
Outcome
With the component bug fixed and the test file updated, all tests within test/playwright/component/form/field/ComboBox.spec.mjs are now passing.
This ticket documents a bug fix for the
ComboBoxcomponent and the corresponding updates to its Playwright test file.Component Bug Fix
A critical bug was fixed in
src/form/field/ComboBox.mjswithin theupdateTypeAheadValue()method. A shadowedmatchvariable was causing theforceSelectionlogic to fail on blur by incorrectly clearing theactiveRecordId.Test File Updates
To align with the correct component behavior and fix pre-existing issues, several changes were made to
test/playwright/component/form/field/ComboBox.spec.mjs:EditableTest: Updated to correctly test the behavior foreditable: false, where the first item is now activated immediately when the picker is opened.Keyboard navigationTest: A failing assertion that checked for[aria-selected="true"]on a hidden element was removed.Outcome
With the component bug fixed and the test file updated, all tests within
test/playwright/component/form/field/ComboBox.spec.mjsare now passing.