feat(test-components): generate new snapshots

This commit is contained in:
eliabejr 2019-01-31 13:32:52 -03:00
parent 9357feb281
commit 4a515c3ad4
20 changed files with 231 additions and 289 deletions

View File

@ -1,11 +0,0 @@
// 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>
`;

View File

@ -1,11 +0,0 @@
// 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>
`;

View File

@ -0,0 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<ColumnComponent /> should render correctly 1`] = `
<div>
<div
class="sc-bdVaJa kRTFg"
width=""
>
<h3>
ZEC
</h3>
<h3>
React
</h3>
<h3>
Wallet
</h3>
</div>
</div>
`;

View File

@ -1,9 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<ConfirmDialogComponent /> render() should render confirm dialog correctly 1`] = `
<div>
<button>
Open!
</button>
</div>
`;
exports[`<ConfirmDialogComponent /> should render confirm dialog correctly 1`] = `null`;

View File

@ -0,0 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<Divider /> should render correctly 1`] = `
<div>
<div
class="sc-bdVaJa eTBnxX"
opacity="0.3"
/>
</div>
`;

View File

@ -1,15 +0,0 @@
// 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>
`;

View File

@ -0,0 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<EmptyTransactions /> should render correctly 1`] = `
<div>
<div
class="sc-bwzfXH gTiHvG"
data-testid="NoTransactions"
>
<p
class="sc-bdVaJa fMeavL"
color="#FFF"
>
No transactions!
</p>
</div>
</div>
`;

View File

@ -0,0 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<Divider /> should render correctly 1`] = `
<div>
<div
class="sc-bdVaJa kRTFg"
width=""
>
<h3>
ZEC
</h3>
<h3>
React
</h3>
<h3>
Wallet
</h3>
</div>
</div>
`;

View File

@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<InputLabelComponent /> should render correctly 1`] = `
<div>
<p
class="sc-bwzfXH dvbGtP sc-bdVaJa fMeavL"
color="#FFF"
>
From
</p>
</div>
`;

View File

@ -1,34 +0,0 @@
// 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>
`;

View File

@ -0,0 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<LayoutComponent /> should render correctly 1`] = `
<div>
<div
class="sc-bdVaJa bnGqDF"
id="layout"
>
<h3>
ZEC
</h3>
<h3>
React
</h3>
<h3>
Wallet
</h3>
</div>
</div>
`;

View File

@ -1,11 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<ModalComponent /> render() should render modal correctly 1`] = `
<div>
<button
type="button"
>
Open Modal
</button>
</div>
`;

View File

@ -1,11 +0,0 @@
// 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>
`;

View File

@ -0,0 +1,19 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<RowComponent /> should render correctly 1`] = `
<div>
<div
class="sc-bdVaJa lgVsKh"
>
<h3>
ZEC
</h3>
<h3>
React
</h3>
<h3>
Wallet
</h3>
</div>
</div>
`;

View File

@ -0,0 +1,29 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<SelectComponent /> should generate snapshot correctly 1`] = `
<div>
<div
class="sc-bwzfXH laILya"
data-testid="Select"
id="select-component"
>
<div
class="sc-htpNat iHFWUy"
>
Select a address
</div>
<div
class="sc-bxivhb fUvjwK"
>
<button
class="sc-ifAKCX JHqFU"
>
<img
class="sc-EHOje fcnlsf"
src="[object Object]"
/>
</button>
</div>
</div>
</div>
`;

View File

@ -0,0 +1,71 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<Sidebar /> render() should render correctly 1`] = `
<DocumentFragment>
<div
class="sc-bdVaJa igFjJZ"
id="sidebar"
>
<a
class="sc-bwzfXH kBVjXq"
>
<img
alt="/"
class="sc-htpNat kwYHDD"
src="[object Object]"
/>
Dashboard
</a>
<a
class="sc-bwzfXH cYKDCP"
>
<img
alt="/send"
class="sc-htpNat eZYlLl"
src="[object Object]"
/>
Send
</a>
<a
class="sc-bwzfXH cYKDCP"
>
<img
alt="/receive"
class="sc-htpNat eZYlLl"
src="[object Object]"
/>
Receive
</a>
<a
class="sc-bwzfXH cYKDCP"
>
<img
alt="/transactions"
class="sc-htpNat eZYlLl"
src="[object Object]"
/>
Transactions
</a>
<a
class="sc-bwzfXH cYKDCP"
>
<img
alt="/settings"
class="sc-htpNat eZYlLl"
src="[object Object]"
/>
Settings
</a>
<a
class="sc-bwzfXH cYKDCP"
>
<img
alt="/console"
class="sc-htpNat eZYlLl"
src="[object Object]"
/>
Console
</a>
</div>
</DocumentFragment>
`;

View File

@ -1,20 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<StatusPill /> render() should render visual component status correctly 1`] = `
<DocumentFragment>
<div
class="sc-bwzfXH klEXgT"
>
<img
class="sc-htpNat geYqkR"
src="[object Object]"
/>
<p
class="sc-bxivhb gsACzh sc-bdVaJa fMeavL"
color="#FFF"
>
syncing (83.00%)
</p>
</div>
</DocumentFragment>
`;

View File

@ -0,0 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<TextComponent /> should render correctly 1`] = `
<div>
<p
class="sc-bdVaJa fMeavL"
color="#FFF"
>
ZEC React Wallet
</p>
</div>
`;

View File

@ -1,137 +0,0 @@
// 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-28T18:11:27.791Z
</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 jLDVvD sc-htpNat dkQVQA"
color="#FFF"
>
receive
</p>
<p
class="sc-chPdSV hltHrj sc-htpNat jxQpDz"
color="#FFF"
>
15:11 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 dztgbW"
color="#6AEAC0"
>
+ZEC 1.789
</p>
<p
class="sc-htpNat dhSLjI"
color="#5d5d65"
>
+USD $2.406
</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"
>
send
</p>
<p
class="sc-chPdSV hltHrj sc-htpNat jxQpDz"
color="#FFF"
>
15:11 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 $1.138
</p>
</div>
</div>
</div>
</div>
</div>
`;

View File

@ -1,32 +0,0 @@
// 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>
`;