app/javascript/spec/toolbar/__snapshots__/dashboard_toolbar.spec.jsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<DashboardToolbar /> renders ok 1`] = `
<DashboardToolbar
allowAdd={true}
allowReset={true}
items={
Array [
Object {
"id": 31,
"image": "fa fa-pie-chart fa-lg",
"text": "add",
"title": "Add this Chart Widget",
"type": "button",
},
]
}
locked={false}
>
<div
className="toolbar-pf-actions miq-toolbar-actions"
>
<div
className="miq-toolbar-group form-group"
>
<OverflowMenu
ariaLabel="Add widget"
direction="bottom"
disabled={false}
flipped={false}
floatingmenu="true"
focusTrap={true}
iconDescription="Open and close list of options"
id="dropdown-custom-2"
light={false}
menuOffset={[Function]}
menuOffsetFlip={[Function]}
menuOptionsClass="scrollable-options"
onClick={[Function]}
onClose={[Function]}
onKeyDown={[Function]}
onOpen={[Function]}
open={false}
renderIcon={[Function]}
selectorPrimaryFocus="[data-overflow-menu-primary-focus]"
title="Add widget"
>
<ClickListener
onClickOutside={[Function]}
>
<button
aria-controls={null}
aria-expanded={false}
aria-haspopup={true}
aria-label="Add widget"
className="bx--overflow-menu bx--overflow-menu--md"
disabled={false}
floatingmenu="true"
id="dropdown-custom-2"
onClick={[Function]}
onClose={[Function]}
onKeyDown={[Function]}
open={false}
title="Add widget"
type="button"
>
<renderIcon
aria-label="Open and close list of options"
className="bx--overflow-menu__icon"
>
<div
className="toolbar-dashboard"
>
<span>
Add widget
</span>
<ForwardRef(ChevronDown20)>
<Icon
fill="currentColor"
height={20}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 32 32"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<svg
aria-hidden={true}
fill="currentColor"
focusable="false"
height={20}
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 32 32"
width={20}
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"
/>
</svg>
</Icon>
</ForwardRef(ChevronDown20)>
</div>
</renderIcon>
</button>
</ClickListener>
</OverflowMenu>
<button
className="btn btn-default refresh_button"
onClick={[Function]}
title="Reset Dashboard Widgets to the defaults"
type="button"
>
<i
className="fa fa-reply fa-lg"
/>
</button>
</div>
</div>
</DashboardToolbar>
`;