Update TreeComponent.test.tsx.snap

This commit is contained in:
MokireddySampath 2023-04-18 17:00:15 +05:30 committed by GitHub
parent 699651cc22
commit 8cf7301076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,38 +184,39 @@ exports[`TreeNodeComponent renders a simple node (sorted children, expanded) 1`]
}, },
}, },
} }
menuProps={ }
Object { menuProps={
"contextualMenuItemAs": [Function], Object {
"coverTarget": true, "contextualMenuItemAs": [Function],
"directionalHint": 3, "coverTarget": true,
"isBeakVisible": false, "directionalHint": 3,
"items": Array [ "isBeakVisible": false,
Object { "items": Array [
"className": undefined, Object {
"disabled": true, "className": undefined,
"key": "menuLabel", "disabled": true,
"onClick": [Function], "key": "menuLabel",
"onRenderIcon": [Function], "onClick": [Function],
"text": "menuLabel", "onRenderIcon": [Function],
}, "text": "menuLabel",
], },
"onMenuDismissed": [Function], ],
"onMenuOpened": [Function], "onMenuDismissed": [Function],
} "onMenuOpened": [Function],
} }
name="More" }
styles={ name="More"
Object { styles={
"rootFocused": Object { Object {
"outline": "1px dashed undefined", "rootFocused": Object {
}, "outline": "1px dashed undefined",
} },
} }
title="More" }
/> title="More"
</div> />
</div> </div>
</div>
<div <div
className="loadingIconContainer" className="loadingIconContainer"
> >
@ -293,32 +294,30 @@ exports[`TreeNodeComponent renders loading icon 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 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"
onKeyPress={[Function]}
role="button"
src=""
tabIndex={0}
/>
<span
className="nodeLabel"
title="label"
>
label
</span>
</div>
</div> </div>
<div <div
className="loadingIconContainer" className="loadingIconContainer"
@ -369,71 +368,69 @@ exports[`TreeNodeComponent renders sorted children, expanded, leaves and parents
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"
className="treeMenuEllipsis"
menuIconProps={
Object {
"iconName": "More",
"styles": Object {
"root": Object {
"fontSize": "18px",
"fontWeight": "bold",
},
},
}
}
menuProps={
Object {
"contextualMenuItemAs": [Function],
"coverTarget": true,
"directionalHint": 3,
"isBeakVisible": false,
"items": Array [],
"onMenuDismissed": [Function],
"onMenuOpened": [Function],
}
}
name="More"
styles={
Object {
"rootFocused": Object {
"outline": "1px dashed undefined",
},
}
}
title="More"
/> />
<span
className="nodeLabel"
title="label"
>
label
</span>
<div
onContextMenu={[Function]}
onKeyPress={[Function]}
>
<CustomizedIconButton
ariaLabel="More"
className="treeMenuEllipsis"
menuIconProps={
Object {
"iconName": "More",
"styles": Object {
"root": Object {
"fontSize": "18px",
"fontWeight": "bold",
},
},
}
}
menuProps={
Object {
"contextualMenuItemAs": [Function],
"coverTarget": true,
"directionalHint": 3,
"isBeakVisible": false,
"items": Array [],
"onMenuDismissed": [Function],
"onMenuOpened": [Function],
}
}
name="More"
styles={
Object {
"rootFocused": Object {
"outline": "1px dashed undefined",
},
}
}
title="More"
/>
</div>
</div> </div>
</div> </div>
<div <div
@ -541,32 +538,30 @@ exports[`TreeNodeComponent renders unsorted 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 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"
onKeyPress={[Function]}
role="button"
src=""
tabIndex={0}
/>
<span
className="nodeLabel"
title="label"
>
label
</span>
</div>
</div> </div>
<div <div
className="loadingIconContainer" className="loadingIconContainer"