Enterprise-ng: Multi-select: test id prefix missing after search with reload typeahead

Created on 5 Mar 2021  路  2Comments  路  Source: infor-design/enterprise-ng

Describe the bug
The custom id attributes specified via the attributes option are missing after a search occurs on a multiselect

To Reproduce
Steps to reproduce the behavior:

  1. Unzip test-id-from-attr.zip into 'app/view/components/multiselect'
  2. Navigate to 'components/multiselect/test-id-from-attr.html'
  3. Open the Towns field, then press F12 and find the first option in the dom. It should have an id of "towns-option-0" on it's a
  4. Search for "wr" in the field, then press F12 and find the first option in the dom. It will not have a id which includes "towns"

Expected behavior
Ids should be on the anchors after the search. Without the correct id on the value, we can not easily find the option to click in automated tests

Version

  • ids-enterprise-ng: v4.38.0-dev

Screenshots
Before search:
image

After Search:
image

Platform

  • All

Additional context
Add any other context about the problem here.

[2] landmark type

Most helpful comment

Looks like this is related on this issue https://github.com/infor-design/enterprise/issues/5053 and the fix is here https://github.com/infor-design/enterprise/pull/5213

Maybe need a test page in NG to make sure it also works? @tjamesallen15 @tmcconechy

All 2 comments

Looks like this is related on this issue https://github.com/infor-design/enterprise/issues/5053 and the fix is here https://github.com/infor-design/enterprise/pull/5213

Maybe need a test page in NG to make sure it also works? @tjamesallen15 @tmcconechy

QA Passed. Thank you.
Working as expected.
image

Was this page helpful?
0 / 5 - 0 ratings