|
@@ -1,6 +1,6 @@
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
-exports[`ExplorerPanel #isError 1`] = `
|
|
|
+exports[`ExplorerPanel general rendering #isError 1`] = `
|
|
|
<FocusTrap
|
|
|
_createFocusTrap={[Function]}
|
|
|
active={true}
|
|
@@ -8,7 +8,7 @@ exports[`ExplorerPanel #isError 1`] = `
|
|
|
focusTrapOptions={
|
|
|
Object {
|
|
|
"initialFocus": ".c-explorer__close",
|
|
|
- "onDeactivate": [Function],
|
|
|
+ "onDeactivate": [MockFunction],
|
|
|
}
|
|
|
}
|
|
|
paused={false}
|
|
@@ -20,7 +20,7 @@ exports[`ExplorerPanel #isError 1`] = `
|
|
|
href="#"
|
|
|
icon=""
|
|
|
isLoading={false}
|
|
|
- onClick={[Function]}
|
|
|
+ onClick={[MockFunction]}
|
|
|
preventDefault={true}
|
|
|
target={null}
|
|
|
>
|
|
@@ -34,6 +34,7 @@ exports[`ExplorerPanel #isError 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-transition-group"
|
|
|
+ key="0"
|
|
|
>
|
|
|
<ExplorerHeader
|
|
|
depth={0}
|
|
@@ -50,9 +51,12 @@ exports[`ExplorerPanel #isError 1`] = `
|
|
|
<div
|
|
|
className="c-explorer__drawer"
|
|
|
>
|
|
|
- <div />
|
|
|
+ <div
|
|
|
+ key="children"
|
|
|
+ />
|
|
|
<div
|
|
|
className="c-explorer__placeholder"
|
|
|
+ key="error"
|
|
|
>
|
|
|
Server Error
|
|
|
</div>
|
|
@@ -72,7 +76,7 @@ exports[`ExplorerPanel #isError 1`] = `
|
|
|
</FocusTrap>
|
|
|
`;
|
|
|
|
|
|
-exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
+exports[`ExplorerPanel general rendering #isFetching 1`] = `
|
|
|
<FocusTrap
|
|
|
_createFocusTrap={[Function]}
|
|
|
active={true}
|
|
@@ -80,7 +84,7 @@ exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
focusTrapOptions={
|
|
|
Object {
|
|
|
"initialFocus": ".c-explorer__close",
|
|
|
- "onDeactivate": [Function],
|
|
|
+ "onDeactivate": [MockFunction],
|
|
|
}
|
|
|
}
|
|
|
paused={true}
|
|
@@ -92,7 +96,7 @@ exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
href="#"
|
|
|
icon=""
|
|
|
isLoading={false}
|
|
|
- onClick={[Function]}
|
|
|
+ onClick={[MockFunction]}
|
|
|
preventDefault={true}
|
|
|
target={null}
|
|
|
>
|
|
@@ -106,6 +110,7 @@ exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-transition-group"
|
|
|
+ key="0"
|
|
|
>
|
|
|
<ExplorerHeader
|
|
|
depth={0}
|
|
@@ -122,9 +127,12 @@ exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
<div
|
|
|
className="c-explorer__drawer"
|
|
|
>
|
|
|
- <div />
|
|
|
+ <div
|
|
|
+ key="children"
|
|
|
+ />
|
|
|
<div
|
|
|
className="c-explorer__placeholder"
|
|
|
+ key="fetching"
|
|
|
>
|
|
|
<LoadingSpinner />
|
|
|
</div>
|
|
@@ -134,7 +142,7 @@ exports[`ExplorerPanel #isFetching 1`] = `
|
|
|
</FocusTrap>
|
|
|
`;
|
|
|
|
|
|
-exports[`ExplorerPanel #items 1`] = `
|
|
|
+exports[`ExplorerPanel general rendering #items 1`] = `
|
|
|
<FocusTrap
|
|
|
_createFocusTrap={[Function]}
|
|
|
active={true}
|
|
@@ -142,7 +150,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
focusTrapOptions={
|
|
|
Object {
|
|
|
"initialFocus": ".c-explorer__close",
|
|
|
- "onDeactivate": [Function],
|
|
|
+ "onDeactivate": [MockFunction],
|
|
|
}
|
|
|
}
|
|
|
paused={false}
|
|
@@ -154,7 +162,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
href="#"
|
|
|
icon=""
|
|
|
isLoading={false}
|
|
|
- onClick={[Function]}
|
|
|
+ onClick={[MockFunction]}
|
|
|
preventDefault={true}
|
|
|
target={null}
|
|
|
>
|
|
@@ -168,6 +176,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-transition-group"
|
|
|
+ key="0"
|
|
|
>
|
|
|
<ExplorerHeader
|
|
|
depth={0}
|
|
@@ -186,7 +195,9 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
<div
|
|
|
className="c-explorer__drawer"
|
|
|
>
|
|
|
- <div>
|
|
|
+ <div
|
|
|
+ key="children"
|
|
|
+ >
|
|
|
<ExplorerItem
|
|
|
item={
|
|
|
Object {
|
|
@@ -198,6 +209,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
+ key="1"
|
|
|
onClick={[Function]}
|
|
|
/>
|
|
|
<ExplorerItem
|
|
@@ -211,6 +223,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
},
|
|
|
}
|
|
|
}
|
|
|
+ key="2"
|
|
|
onClick={[Function]}
|
|
|
/>
|
|
|
</div>
|
|
@@ -220,7 +233,7 @@ exports[`ExplorerPanel #items 1`] = `
|
|
|
</FocusTrap>
|
|
|
`;
|
|
|
|
|
|
-exports[`ExplorerPanel no children 1`] = `
|
|
|
+exports[`ExplorerPanel general rendering no children 1`] = `
|
|
|
<FocusTrap
|
|
|
_createFocusTrap={[Function]}
|
|
|
active={true}
|
|
@@ -228,7 +241,7 @@ exports[`ExplorerPanel no children 1`] = `
|
|
|
focusTrapOptions={
|
|
|
Object {
|
|
|
"initialFocus": ".c-explorer__close",
|
|
|
- "onDeactivate": [Function],
|
|
|
+ "onDeactivate": [MockFunction],
|
|
|
}
|
|
|
}
|
|
|
paused={false}
|
|
@@ -240,7 +253,7 @@ exports[`ExplorerPanel no children 1`] = `
|
|
|
href="#"
|
|
|
icon=""
|
|
|
isLoading={false}
|
|
|
- onClick={[Function]}
|
|
|
+ onClick={[MockFunction]}
|
|
|
preventDefault={true}
|
|
|
target={null}
|
|
|
>
|
|
@@ -254,6 +267,7 @@ exports[`ExplorerPanel no children 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-transition-group"
|
|
|
+ key="0"
|
|
|
>
|
|
|
<ExplorerHeader
|
|
|
depth={0}
|
|
@@ -269,6 +283,7 @@ exports[`ExplorerPanel no children 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-explorer__placeholder"
|
|
|
+ key="empty"
|
|
|
>
|
|
|
No results
|
|
|
</div>
|
|
@@ -278,7 +293,7 @@ exports[`ExplorerPanel no children 1`] = `
|
|
|
</FocusTrap>
|
|
|
`;
|
|
|
|
|
|
-exports[`ExplorerPanel renders 1`] = `
|
|
|
+exports[`ExplorerPanel general rendering renders 1`] = `
|
|
|
<FocusTrap
|
|
|
_createFocusTrap={[Function]}
|
|
|
active={true}
|
|
@@ -286,7 +301,7 @@ exports[`ExplorerPanel renders 1`] = `
|
|
|
focusTrapOptions={
|
|
|
Object {
|
|
|
"initialFocus": ".c-explorer__close",
|
|
|
- "onDeactivate": [Function],
|
|
|
+ "onDeactivate": [MockFunction],
|
|
|
}
|
|
|
}
|
|
|
paused={false}
|
|
@@ -298,7 +313,7 @@ exports[`ExplorerPanel renders 1`] = `
|
|
|
href="#"
|
|
|
icon=""
|
|
|
isLoading={false}
|
|
|
- onClick={[Function]}
|
|
|
+ onClick={[MockFunction]}
|
|
|
preventDefault={true}
|
|
|
target={null}
|
|
|
>
|
|
@@ -312,6 +327,7 @@ exports[`ExplorerPanel renders 1`] = `
|
|
|
>
|
|
|
<div
|
|
|
className="c-transition-group"
|
|
|
+ key="0"
|
|
|
>
|
|
|
<ExplorerHeader
|
|
|
depth={0}
|
|
@@ -327,7 +343,9 @@ exports[`ExplorerPanel renders 1`] = `
|
|
|
<div
|
|
|
className="c-explorer__drawer"
|
|
|
>
|
|
|
- <div />
|
|
|
+ <div
|
|
|
+ key="children"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</Transition>
|