Closed rwnbiad closed 2 years ago
hi, thanks again for the detailed description of the issue π
have you tried adding interaction: "root"
to the selector?
as in
const filterbar = {
selector: {
//...
interaction: "root"
}
}
interaction: root
is a malevolent property from OPA5 land - we're currently collecting all controls requiring that property in order to eventually add it on the fly; so that in the code of the test, it can go away from the selector
hey π - silence for 30 days π€ ... anybody? π
closed π΄ because silencio π€« since an additional 14 days after staleness π
Hi, I have the same problem. I tried to add interaction: root, but it still doesn't work.
Runtime Env:
I guess we'll have to look at the SmartFilterBar
specifically, meaning we'll include exactly that use case in our own tests.
We'll get back to you two here!
Sorry, I missed the fact that it was about the SmartFilterBar, in fact I have the same problem with sap.ui.comp.filterbar.FilterBar.
hey π - silence for 30 days π€ ... anybody? π
closed π΄ because silencio π€« since an additional 14 days after staleness π
Describe the bug Similar to something what is described here, doesn't work for SmartFilterBar. Invoking
listItem.getTitle
doesn't workSmartFilterBar has an aggregation called 'filterGroupItems' of type sap.ui.comp.filterbar.FilterGroupItem. Each FilterGroupItem has a property called label
The below is my code. I'm just invoking the getLabelMethod
This doesn't work, because the native UI5 methods of FilterGroupItem don't seem to be available on each of the items in aggregation.
This leads to a type error about missing function
This seems broken in other places (other than SmartFilterBar) as well. getRows on sap.ui.table.Table also has the same problem
To Reproduce Invoke getLabel on items of filterGroupItems aggregation of SmartFilterBar
Expected behavior The label of the filter item
Logs/Console Output TypeError: item.getLabel is not a function
Screenshots above
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 0.9.0-alpha.1UI5
version: 1.98.0wdio
-version (output ofwdio --version
): @wdio/cli (version: 7.16.16)node
-version (output ofnode --version
): v16.14.0