Enterprise: Dropdown: automation identifiers

Created on 14 Jan 2021  路  6Comments  路  Source: infor-design/enterprise

Describe the bug
Not sure if this should be a bug or feature. But we need to be able to set identifiers on dropdowns. Right now it is set on the select, but since the user needs to user the dropdown div the id needs to be set on that one as well.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://master-enterprise.demo.design.infor.com/components/dropdown/example-index.html
  2. Open dev tools
  3. Inspect the dropdown element
  4. Note that it's the dropdown div that is clicked and not the select. And that the id is no on the dropdown div

Expected behavior
The id set on the select or set in attributes to the select should be added to the dropdown like id="-dropdown"

Version

  • ids-enterprise: 4.36

Screenshots
If applicable, add screenshots to help explain your problem.
image

Platform

  • Infor Application/Team Name: Homepages
  • OS Version: Windows 10
  • Browser Name: chrome
  • Browser Version: Version 87.0.4280.141 (Official Build) (64-bit)

Additional context
Add any other context about the problem here.

[1] homepages landmark type

All 6 comments

Working on some dropdown changes and have this fixed locally

Closing this as a duplicate of https://github.com/infor-design/enterprise/issues/4742 - doing the work there

@tmcconechy how do i get the id to work when using the ng components? I can't get it working in Homepages and also the id is not showing on the dropdown in this sample: http://localhost:4200/ids-enterprise-ng-demo/dropdown-simple
Do I have to add it as as attributes[{name: "id",.value:"my-id"}] for it to work in the angular components?

I didnt add an example to every single NG component since its the same but i did try it on a few like this one:

https://github.com/infor-design/enterprise-ng/blob/master/src/app/colorpicker/colorpicker.demo.ts#L22
https://github.com/infor-design/enterprise-ng/blob/master/src/app/colorpicker/colorpicker.demo.html#L6

I think when it comes to objects i'd not inline the whole thing.....I'd make a variable

Thanks Tim! I just wanted to confim that that was the idea.

Was this page helpful?
0 / 5 - 0 ratings