Details
-
Improvement
-
Resolution: Resolved
-
Neutral
-
None
-
None
Description
ContentApp#selectRowByPath is somehow erratic.
In tree-view:
Imagine this example content:
/root-item
/level1-item
/level2-item
If the tree is fully collapsed,
Then selecting contentApp#selectRowByPath("root-item/level1-item")
-> Works fine
If the item "root-item" is selected
Then selecting contentApp#selectRowByPath("root-item/level1-item")
-> fails
Instead
to select level1-item - it requires this call:
contentApp#selectRowByPath("level1-item")
P.S. Leading slash can be added or omitted, doesn't matter.
This behaviour is a bit weird, unanticipated.
A typical test / scenario workflow contains subsequent actions with multiple selections ... and the required code to select becomes a bit weird.
The method #selectRowByPath should always work "the same", where the parameter always should be the "path" - independent from what had been selected upfront.
In case we implement ContentApp#unselectAndReset - #selectRowByPath could call #unselectAndReset internally upfront, which may fix the problem.
In list-view
seems like that doesn't work at all when using "root-item/level1-item" or "/root-item/level1-item" as parameter ... be be checked again.