Skip to content

feat(tree-view): add nodesFlat prop #102

feat(tree-view): add nodesFlat prop

feat(tree-view): add nodesFlat prop #102

Triggered via pull request December 1, 2024 20:27
Status Failure
Total duration 38s
Artifacts

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.