feat(test-components): generate snapshots
This commit is contained in:
parent
25f418e7bd
commit
461f43eb7f
|
@ -1,30 +1,76 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<Sidebar /> render() should render correctly 1`] = `
|
||||
exports[`<SidebarComponent /> render() should render correctly 1`] = `
|
||||
<DocumentFragment>
|
||||
<div
|
||||
class="sc-bdVaJa fnXMXv"
|
||||
class="sc-bdVaJa igFjJZ"
|
||||
>
|
||||
<a
|
||||
class="sc-bwzfXH kBVjXq"
|
||||
href="/"
|
||||
>
|
||||
<img
|
||||
alt="/"
|
||||
class="sc-htpNat kwYHDD"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Dashboard
|
||||
</a>
|
||||
<a
|
||||
class="sc-bwzfXH cYKDCP"
|
||||
href="/send"
|
||||
>
|
||||
<img
|
||||
alt="/send"
|
||||
class="sc-htpNat eZYlLl"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Send
|
||||
</a>
|
||||
<a
|
||||
class="sc-bwzfXH cYKDCP"
|
||||
href="/receive"
|
||||
>
|
||||
<img
|
||||
alt="/receive"
|
||||
class="sc-htpNat eZYlLl"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Receive
|
||||
</a>
|
||||
<a
|
||||
class="sc-bwzfXH cYKDCP"
|
||||
href="/transactions"
|
||||
>
|
||||
<img
|
||||
alt="/transactions"
|
||||
class="sc-htpNat eZYlLl"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Transactions
|
||||
</a>
|
||||
<a
|
||||
class="sc-bwzfXH cYKDCP"
|
||||
href="/settings"
|
||||
>
|
||||
<img
|
||||
alt="/settings"
|
||||
class="sc-htpNat eZYlLl"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Settings
|
||||
</a>
|
||||
<a
|
||||
class="sc-bwzfXH cYKDCP"
|
||||
href="/console"
|
||||
>
|
||||
<img
|
||||
alt="/console"
|
||||
class="sc-htpNat eZYlLl"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Console
|
||||
</a>
|
||||
</div>
|
||||
</DocumentFragment>
|
||||
`;
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<Button /> render() should render button correctly 1`] = `
|
||||
<div>
|
||||
<button
|
||||
class="sc-bwzfXH jhigKU"
|
||||
>
|
||||
Click me!
|
||||
</button>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,11 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<Clipboard /> render() should render clipboard component correctly 1`] = `
|
||||
<div>
|
||||
<button
|
||||
class="sc-bwzfXH jhigKU"
|
||||
>
|
||||
Copy!
|
||||
</button>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,9 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<ConfirmDialogComponent /> render() should render confirm dialog correctly 1`] = `
|
||||
<div>
|
||||
<button>
|
||||
Open!
|
||||
</button>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,15 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<DropdownComponent /> render() should render dropdown correctly 1`] = `
|
||||
<div>
|
||||
<div
|
||||
style="height: 500px;"
|
||||
>
|
||||
<button
|
||||
class="sc-gzVnrw ksBRVA"
|
||||
>
|
||||
Show Dropdown
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,34 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<InputComponent /> render() should render text input correctly 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="sc-bdVaJa EXKLM"
|
||||
>
|
||||
<input
|
||||
class="sc-htpNat cOoEZT"
|
||||
rows="4"
|
||||
step="1"
|
||||
type="text"
|
||||
value="Hello World!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`<InputComponent /> render() should render textarea correctly 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="sc-bdVaJa EXKLM"
|
||||
>
|
||||
<textarea
|
||||
class="sc-bxivhb klegai"
|
||||
rows="10"
|
||||
step="1"
|
||||
type="text"
|
||||
>
|
||||
I am Zcash Electron Wallet
|
||||
</textarea>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,11 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<ModalComponent /> render() should render modal correctly 1`] = `
|
||||
<div>
|
||||
<button
|
||||
type="button"
|
||||
>
|
||||
Open Modal
|
||||
</button>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,11 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<QRCode /> render() should render qrcode component correctly 1`] = `
|
||||
<div>
|
||||
<canvas
|
||||
height="128"
|
||||
style="height: 128px; width: 128px;"
|
||||
width="128"
|
||||
/>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,137 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<TransactionDailyComponent /> render() should render user daily transactions 1`] = `
|
||||
<div>
|
||||
<div
|
||||
class="sc-kpOJdX inMzwo"
|
||||
>
|
||||
<p
|
||||
class="sc-ckVGcZ kFpbuU sc-htpNat jxQpDz"
|
||||
color="#FFF"
|
||||
>
|
||||
2019-01-25T20:38:40.521Z
|
||||
</p>
|
||||
<div
|
||||
class="sc-dxgOiQ cLfqec"
|
||||
>
|
||||
<div
|
||||
class="sc-fjdhpX kUigkI sc-bdVaJa bWRfen"
|
||||
>
|
||||
<div
|
||||
class="sc-bdVaJa eFCRqo"
|
||||
>
|
||||
<div
|
||||
class="sc-bdVaJa eFCRqo"
|
||||
>
|
||||
<img
|
||||
alt="Transaction Type Icon"
|
||||
class="sc-jzJRlG dHAJgd"
|
||||
src="[object Object]"
|
||||
/>
|
||||
<div
|
||||
class="sc-kgoBCf fmsvla sc-bwzfXH iiePXZ"
|
||||
width=""
|
||||
>
|
||||
<p
|
||||
class="sc-cSHVUG bHGbwE sc-htpNat dkQVQA"
|
||||
color="#FFF"
|
||||
>
|
||||
received
|
||||
</p>
|
||||
<p
|
||||
class="sc-chPdSV hltHrj sc-htpNat jxQpDz"
|
||||
color="#FFF"
|
||||
>
|
||||
17:38 PM
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<p
|
||||
class="sc-kAzzGY dMXFTy sc-htpNat jxQpDz"
|
||||
color="#FFF"
|
||||
>
|
||||
12345678912345678912...9123456789
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="sc-bwzfXH jExuEg"
|
||||
width=""
|
||||
>
|
||||
<p
|
||||
class="sc-htpNat jAbxuE"
|
||||
color="#FF6C6C"
|
||||
>
|
||||
-ZEC 1.789
|
||||
</p>
|
||||
<p
|
||||
class="sc-htpNat dhSLjI"
|
||||
color="#5d5d65"
|
||||
>
|
||||
-USD $0
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="sc-kGXeez jZgEID"
|
||||
/>
|
||||
<div
|
||||
class="sc-fjdhpX kUigkI sc-bdVaJa bWRfen"
|
||||
>
|
||||
<div
|
||||
class="sc-bdVaJa eFCRqo"
|
||||
>
|
||||
<div
|
||||
class="sc-bdVaJa eFCRqo"
|
||||
>
|
||||
<img
|
||||
alt="Transaction Type Icon"
|
||||
class="sc-jzJRlG dHAJgd"
|
||||
src="[object Object]"
|
||||
/>
|
||||
<div
|
||||
class="sc-kgoBCf fmsvla sc-bwzfXH iiePXZ"
|
||||
width=""
|
||||
>
|
||||
<p
|
||||
class="sc-cSHVUG bHGbwE sc-htpNat dkQVQA"
|
||||
color="#FFF"
|
||||
>
|
||||
sent
|
||||
</p>
|
||||
<p
|
||||
class="sc-chPdSV hltHrj sc-htpNat jxQpDz"
|
||||
color="#FFF"
|
||||
>
|
||||
17:38 PM
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<p
|
||||
class="sc-kAzzGY dMXFTy sc-htpNat jxQpDz"
|
||||
color="#FFF"
|
||||
>
|
||||
12345678912345678912...9123456789
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
class="sc-bwzfXH jExuEg"
|
||||
width=""
|
||||
>
|
||||
<p
|
||||
class="sc-htpNat jAbxuE"
|
||||
color="#FF6C6C"
|
||||
>
|
||||
-ZEC 0.846
|
||||
</p>
|
||||
<p
|
||||
class="sc-htpNat dhSLjI"
|
||||
color="#5d5d65"
|
||||
>
|
||||
-USD $0
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
|
@ -0,0 +1,32 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<WalletAddress /> render() should render wallet address component correctly 1`] = `
|
||||
<div>
|
||||
<div
|
||||
style="width: 700px;"
|
||||
>
|
||||
<div
|
||||
class="sc-bdVaJa eMHGRJ"
|
||||
width="100%"
|
||||
>
|
||||
<div
|
||||
class="sc-EHOje gdDRhj"
|
||||
>
|
||||
<input
|
||||
class="sc-bZQynM kSTZfH"
|
||||
value="t14oHp2v54vfmdgQ3v3S...8JKHTNi2a1"
|
||||
/>
|
||||
<button
|
||||
class="sc-gzVnrw epOqxZ sc-bxivhb fPicDU"
|
||||
>
|
||||
<img
|
||||
class="sc-ifAKCX hBMlcu"
|
||||
src="[object Object]"
|
||||
/>
|
||||
Show full address and QR Code
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
Loading…
Reference in New Issue