feat(tree-view): add nodesFlat
prop
#102
Annotations
2 errors
TreeView/TreeView.test.ts > TreeView > can turn flat array into nested array:
node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L344
TestingLibraryElementError: Unable to find an accessible element with the role "treeitem" and name `/Blockchain/`
Here are the accessible roles:
tree:
Name "Cloud Products":
<ul
aria-labelledby="label-0.fmvhmaujjq8"
class="bx--tree bx--tree--compact"
nodesflat="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
role="tree"
/>
--------------------------------------------------
button:
Name "Expand all":
<button
class="bx--btn bx--btn--primary"
tabindex="0"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<label
class="bx--label"
id="label-0.fmvhmaujjq8"
>
Cloud Products
</label>
<ul
aria-labelledby="label-0.fmvhmaujjq8"
class="bx--tree bx--tree--compact"
nodesflat="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
role="tree"
>
</ul>
<button
class="bx--btn bx--btn--primary"
tabindex="0"
type="button"
>
Expand all
</button>
</div>
</body>
❯ Object.getElementError ../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:344:19
❯ ../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1211:25
❯ ../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1190:17
❯ ../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1233:19
❯ getItemByName TreeView/TreeView.test.ts:8:19
❯ TreeView/TreeView.test.ts:45:23
|
test
Process completed with exit code 1.
|