mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 22:19:48 +03:00
tests
This commit is contained in:
parent
1c873762a9
commit
7cd3e37d3d
|
@ -53,6 +53,7 @@
|
|||
"@storybook/react": "^6.0.21",
|
||||
"@types/codemirror": "^0.0.97",
|
||||
"@types/enzyme": "^3.10.5",
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/react-jsonschema-form": "^1.7.4",
|
||||
"@types/react-select": "^3.0.19",
|
||||
"csstype": "^3.0.2",
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Notification renders correctly 1`] = `
|
||||
<div
|
||||
class="sc-fznKkj ibIwiW"
|
||||
type="info"
|
||||
>
|
||||
<span>
|
||||
Message
|
||||
</span>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Notification renders with props 1`] = `
|
||||
<div
|
||||
class="sc-fznKkj ibIwiW"
|
||||
type="error"
|
||||
>
|
||||
<svg
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
stroke="currentColor"
|
||||
stroke-width="0"
|
||||
viewBox="0 0 24 24"
|
||||
width="1em"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"
|
||||
/>
|
||||
</svg>
|
||||
<span>
|
||||
Message
|
||||
</span>
|
||||
<button>
|
||||
<svg
|
||||
fill="currentColor"
|
||||
height="1em"
|
||||
stroke="currentColor"
|
||||
stroke-width="0"
|
||||
viewBox="0 0 24 24"
|
||||
width="1em"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,24 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`SegmentedControl renders correctly 1`] = `
|
||||
<div
|
||||
class="sc-fznyAO jQfpYK"
|
||||
>
|
||||
<button
|
||||
data-selected="true"
|
||||
value="Button1"
|
||||
>
|
||||
Button1
|
||||
</button>
|
||||
<button
|
||||
value="Button2"
|
||||
>
|
||||
Button2
|
||||
</button>
|
||||
<button
|
||||
value="Button3"
|
||||
>
|
||||
Button3
|
||||
</button>
|
||||
</div>
|
||||
`;
|
3927
packages/devui/tests/__snapshots__/Select.test.tsx.snap
Normal file
3927
packages/devui/tests/__snapshots__/Select.test.tsx.snap
Normal file
File diff suppressed because one or more lines are too long
32
packages/devui/tests/__snapshots__/Slider.test.tsx.snap
Normal file
32
packages/devui/tests/__snapshots__/Slider.test.tsx.snap
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Slider renders correctly 1`] = `
|
||||
<div
|
||||
class="sc-AxheI ikoHwk"
|
||||
>
|
||||
<input
|
||||
max="100"
|
||||
min="0"
|
||||
type="range"
|
||||
value="0"
|
||||
/>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Slider renders with props 1`] = `
|
||||
<div
|
||||
class="sc-AxheI bySZMR"
|
||||
disabled=""
|
||||
>
|
||||
<label>
|
||||
Hi
|
||||
</label>
|
||||
<input
|
||||
disabled=""
|
||||
max="10"
|
||||
min="1"
|
||||
type="range"
|
||||
value="5"
|
||||
/>
|
||||
</div>
|
||||
`;
|
129
packages/devui/tests/__snapshots__/Tabs.test.tsx.snap
Normal file
129
packages/devui/tests/__snapshots__/Tabs.test.tsx.snap
Normal file
|
@ -0,0 +1,129 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Tabs renders correctly 1`] = `
|
||||
<div
|
||||
class="sc-fzplWN iQpDbE"
|
||||
>
|
||||
<div
|
||||
class="sc-fzpans gRdChJ"
|
||||
>
|
||||
<div>
|
||||
<button
|
||||
value="Tab1"
|
||||
>
|
||||
Tab1
|
||||
</button>
|
||||
<button
|
||||
value="Tab2"
|
||||
>
|
||||
Tab2
|
||||
</button>
|
||||
<button
|
||||
value="Tab3"
|
||||
>
|
||||
Tab3
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Tabs renders tabs without inner components 1`] = `
|
||||
<div
|
||||
class="sc-fzplWN iQpDbE"
|
||||
>
|
||||
<div
|
||||
class="sc-fzpans gRdChJ"
|
||||
>
|
||||
<div>
|
||||
<button
|
||||
value="1"
|
||||
>
|
||||
Tab1
|
||||
</button>
|
||||
<button
|
||||
value="2"
|
||||
>
|
||||
Tab2
|
||||
</button>
|
||||
<button
|
||||
value="3"
|
||||
>
|
||||
Tab3
|
||||
</button>
|
||||
<button
|
||||
value="4"
|
||||
>
|
||||
Tab4
|
||||
</button>
|
||||
<button
|
||||
data-selected="true"
|
||||
value="5"
|
||||
>
|
||||
Tab5
|
||||
</button>
|
||||
<button
|
||||
value="6"
|
||||
>
|
||||
Tab6
|
||||
</button>
|
||||
<button
|
||||
value="7"
|
||||
>
|
||||
Tab7
|
||||
</button>
|
||||
<button
|
||||
value="8"
|
||||
>
|
||||
Tab8
|
||||
</button>
|
||||
<button
|
||||
value="9"
|
||||
>
|
||||
Tab9
|
||||
</button>
|
||||
<button
|
||||
value="10"
|
||||
>
|
||||
Tab10
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Tabs renders with props 1`] = `
|
||||
<div
|
||||
class="sc-fzplWN iQpDbE"
|
||||
>
|
||||
<div
|
||||
class="sc-fzpans gRdChJ"
|
||||
>
|
||||
<div>
|
||||
<button
|
||||
value="Tab1"
|
||||
>
|
||||
Tab1
|
||||
</button>
|
||||
<button
|
||||
data-selected="true"
|
||||
value="Tab2"
|
||||
>
|
||||
Tab2
|
||||
</button>
|
||||
<button
|
||||
value="Tab3"
|
||||
>
|
||||
Tab3
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div
|
||||
style="display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:22px"
|
||||
>
|
||||
Selected Tab2
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
38
packages/devui/tests/__snapshots__/Toolbar.test.tsx.snap
Normal file
38
packages/devui/tests/__snapshots__/Toolbar.test.tsx.snap
Normal file
|
@ -0,0 +1,38 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Toolbar renders correctly 1`] = `
|
||||
<div
|
||||
class="sc-fznZeY bcKxBO"
|
||||
>
|
||||
<div
|
||||
class="sc-AxhUy dkmwYZ"
|
||||
>
|
||||
<button
|
||||
class="sc-AxiKw jvXzBz"
|
||||
>
|
||||
1
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="sc-fzokOt drZiIn"
|
||||
/>
|
||||
<div
|
||||
class="sc-fzqBZW kjCEpb"
|
||||
/>
|
||||
<div
|
||||
class="sc-AxhUy dkmwYZ"
|
||||
>
|
||||
<button
|
||||
class="sc-AxiKw jvXzBz"
|
||||
>
|
||||
2
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Toolbar renders with props 1`] = `
|
||||
<div
|
||||
class="sc-fznZeY csZTMz"
|
||||
/>
|
||||
`;
|
|
@ -3388,7 +3388,14 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/dragula/-/dragula-3.7.0.tgz#62178f21c3896ab9823a33d08ed844ab9af496af"
|
||||
integrity sha512-Scr3lQ7pDmwic+I4qrzDEIfPVGUhc/qo8S0VJJ9v5pzTyIIJzAXrnFajjsMSL8J84VERIkZUh7wH6wYEisY+TA==
|
||||
|
||||
"@types/enzyme@^3.10.5":
|
||||
"@types/enzyme-adapter-react-16@^1.0.6":
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.0.6.tgz#8aca7ae2fd6c7137d869b6616e696d21bb8b0cec"
|
||||
integrity sha512-VonDkZ15jzqDWL8mPFIQnnLtjwebuL9YnDkqeCDYnB4IVgwUm0mwKkqhrxLL6mb05xm7qqa3IE95m8CZE9imCg==
|
||||
dependencies:
|
||||
"@types/enzyme" "*"
|
||||
|
||||
"@types/enzyme@*", "@types/enzyme@^3.10.5":
|
||||
version "3.10.5"
|
||||
resolved "https://registry.yarnpkg.com/@types/enzyme/-/enzyme-3.10.5.tgz#fe7eeba3550369eed20e7fb565bfb74eec44f1f0"
|
||||
integrity sha512-R+phe509UuUYy9Tk0YlSbipRpfVtIzb/9BHn5pTEtjJTF5LXvUjrIQcZvNyANNEyFrd2YGs196PniNT1fgvOQA==
|
||||
|
|
Loading…
Reference in New Issue
Block a user