Closed FrankVisuals closed 2 months ago
The FioriElementsTestLibrary is developed by SAP. wdi5 is just using it. Could you raise this issue/question to the FioriElements SAP Team?
A workaround for this case could be to just identity the field with normal wdi5 and the help of the Test Recorder:
await browser.asControl({...})
Thanks for the fast reply @Siolto, i will raise the issue there. I am aware of the workaround, but try to build the tests as much as possible using the test lib :)
We have a field defined on our object page that has a unit of measure added using the
@@Measures.Unit
annotation. This results in the UI rendering two fields with the IDsand
They are not connected fields. Therefore, I cannot access the unit input field using a form action. For the quantity I can use
However, I cannot find any way to target the second field that has just a different suffix.
Relevant Code:
CAP CDS (node.js)
For the object page we defined the two fields
This leads to the following result
HTML
To Reproduce Steps to reproduce the behavior:
@Measures.Unit
Expected behavior I'd expect either an option specifically for units (as it seems to be a special case), or some way of giving the suffix as input to the selector.
Runtime Env (please complete the following information):