Update TreeComponent.test.tsx.snap

This commit is contained in:
MokireddySampath
2023-04-18 16:56:49 +05:30
committed by GitHub
parent b45d5cc0b3
commit 699651cc22

View File

@@ -40,32 +40,30 @@ exports[`TreeNodeComponent does not render children by default 1`] = `
onKeyPress={[Function]} onKeyPress={[Function]}
role="treeitem" role="treeitem"
> >
<div> <div
<div className="treeNodeHeader "
className="treeNodeHeader " data-test="label"
data-test="label" style={
style={ Object {
Object { "paddingLeft": 9,
"paddingLeft": 9,
}
} }
tabIndex={-1} }
tabIndex={-1}
>
<img
alt="label branch is collapsed"
className="expandCollapseIcon"
onKeyPress={[Function]}
role="button"
src=""
tabIndex={0}
/>
<span
className="nodeLabel"
title="label"
> >
<img label
alt="label branch is collapsed" </span>
className="expandCollapseIcon"
onKeyPress={[Function]}
role="button"
src=""
tabIndex={0}
/>
<span
className="nodeLabel"
title="label"
>
label
</span>
</div>
</div> </div>
<div <div
className="loadingIconContainer" className="loadingIconContainer"
@@ -145,82 +143,79 @@ exports[`TreeNodeComponent renders a simple node (sorted children, expanded) 1`]
onKeyPress={[Function]} onKeyPress={[Function]}
role="treeitem" role="treeitem"
> >
<div> <div
<div className="treeNodeHeader "
className="treeNodeHeader " data-test="label"
data-test="label" style={
style={ Object {
Object { "paddingLeft": 23,
"paddingLeft": 23,
}
} }
tabIndex={-1} }
tabIndex={-1}
>
<img
alt="label branch is expanded"
className="expandCollapseIcon"
onKeyPress={[Function]}
role="button"
src=""
tabIndex={0}
/>
<span
className="nodeLabel"
title="label"
> >
<img label
alt="label branch is expanded" </span>
className="expandCollapseIcon" <div
onKeyPress={[Function]} onContextMenu={[Function]}
role="button" onKeyPress={[Function]}
src="" >
tabIndex={0} <CustomizedIconButton
/> ariaLabel="More"
<span className="treeMenuEllipsis"
className="nodeLabel" menuIconProps={
title="label" Object {
> "iconName": "More",
label "styles": Object {
</span> "root": Object {
<div "fontSize": "18px",
onContextMenu={[Function]} "fontWeight": "bold",
onKeyPress={[Function]}
>
<CustomizedIconButton
ariaLabel="More"
className="treeMenuEllipsis"
menuIconProps={
Object {
"iconName": "More",
"styles": Object {
"root": Object {
"fontSize": "18px",
"fontWeight": "bold",
},
}, },
} },
} }
menuProps={ menuProps={
Object { Object {
"contextualMenuItemAs": [Function], "contextualMenuItemAs": [Function],
"coverTarget": true, "coverTarget": true,
"directionalHint": 3, "directionalHint": 3,
"isBeakVisible": false, "isBeakVisible": false,
"items": Array [ "items": Array [
Object { Object {
"className": undefined, "className": undefined,
"disabled": true, "disabled": true,
"key": "menuLabel", "key": "menuLabel",
"onClick": [Function], "onClick": [Function],
"onRenderIcon": [Function], "onRenderIcon": [Function],
"text": "menuLabel", "text": "menuLabel",
}, },
], ],
"onMenuDismissed": [Function], "onMenuDismissed": [Function],
"onMenuOpened": [Function], "onMenuOpened": [Function],
} }
} }
name="More" name="More"
styles={ styles={
Object { Object {
"rootFocused": Object { "rootFocused": Object {
"outline": "1px dashed undefined", "outline": "1px dashed undefined",
}, },
} }
} }
title="More" title="More"
/> />
</div> </div>
</div> </div>
</div>
<div <div
className="loadingIconContainer" className="loadingIconContainer"
> >