LearnNewsExamplesServices
Frontmatter
id7708
titlefix(ComboBox): Correct forceSelection behavior and update Playwright tests
stateClosed
labels
bugenhancementaitesting
assigneestobiu
createdAtNov 6, 2025, 10:54 AM
updatedAtNov 6, 2025, 10:56 AM
githubUrlhttps://github.com/neomjs/neo/issues/7708
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 6, 2025, 10:56 AM

fix(ComboBox): Correct forceSelection behavior and update Playwright tests

Closed v11.0.0 bugenhancementaitesting
tobiu
tobiu commented on Nov 6, 2025, 10:54 AM

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:

  1. Editable Test: Updated to correctly test the behavior for editable: false, where the first item is now activated immediately when the picker is opened.
  2. 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.

tobiu assigned to @tobiu on Nov 6, 2025, 10:55 AM
tobiu added the bug label on Nov 6, 2025, 10:56 AM
tobiu added the enhancement label on Nov 6, 2025, 10:56 AM
tobiu added the ai label on Nov 6, 2025, 10:56 AM
tobiu added the testing label on Nov 6, 2025, 10:56 AM
tobiu referenced in commit ab81134 - "fix(ComboBox): Correct forceSelection behavior and update Playwright tests #7708" on Nov 6, 2025, 10:56 AM
tobiu closed this issue on Nov 6, 2025, 10:56 AM