This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
/
CustomPeers.test.tsx.snap
181 lines (179 loc) · 5.66 KB
/
CustomPeers.test.tsx.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CustomPeers should not render if not open 1`] = `<DocumentFragment />`;
exports[`CustomPeers should render a modal 1`] = `
<DocumentFragment>
<div
class="fixed inset-0 z-50 bg-black opacity-50"
data-testid="modal__overlay"
/>
<div
class="sc-fzplWN hXndMY fixed top-0 left-0 right-0 z-50 flex flex-col px-10 pt-6 pb-8 mx-auto mt-24 overflow-hidden rounded-xl bg-theme-background"
data-testid="modal__inner"
>
<div
class="absolute top-0 right-0 z-50 mt-5 mr-5"
>
<button
class="sc-AxjAm bThAoP"
color="neutral"
data-testid="modal__close-btn"
type="button"
>
<div
class="p-1"
>
<div
class="sc-AxhUy iFvBPK"
height="12"
width="12"
>
<svg>
cross-slim.svg
</svg>
</div>
</div>
</button>
</div>
<div
class="py-4"
>
<h2
class="mb-0 text-3xl font-bold"
>
Custom Peer
</h2>
<div
class="flex-1"
>
<form
class="space-y-8"
data-testid="Form"
>
<fieldset
class="sc-AxiKw iQzisX mt-8"
>
<label
class="flex inline-block mb-2 text-sm font-medium FormLabel transition-colors duration-100 text-theme-neutral-dark"
data-testid="FormLabel"
for="network"
>
Network
</label>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-owns="CustomPeers__network-menu"
data-testid="SelectNetwork"
role="combobox"
>
<label
for="CustomPeers__network-input"
id="CustomPeers__network-label"
/>
<div
class="sc-AxmLO kuiknc"
data-testid="SelectNetworkInput"
>
<div
class="sc-AxgMl sc-AxheI hUEXQW px-4"
>
<div
class="sc-fznyAO crOapn border-theme-neutral-light text-theme-neutral"
data-testid="SelectNetworkInput__network"
/>
</div>
<input
aria-autocomplete="list"
aria-controls="CustomPeers__network-menu"
aria-labelledby="CustomPeers__network-label"
autocomplete="off"
class="sc-AxhCb biYFdn overflow-hidden w-full bg-theme-background appearance-none rounded border border-theme-neutral-300 text-theme-neutral-900 transition-colors duration-200 px-4 py-3 pl-15"
data-testid="SelectNetworkInput__input"
id="CustomPeers__network-input"
placeholder="Enter a network name"
value=""
/>
</div>
</div>
<ul
aria-labelledby="CustomPeers__network-label"
id="CustomPeers__network-menu"
role="listbox"
/>
</fieldset>
<fieldset
class="sc-AxiKw iQzisX flex flex-col space-y-2"
>
<label
class="flex inline-block mb-2 text-sm font-medium FormLabel transition-colors duration-100 text-theme-neutral-dark"
data-testid="FormLabel"
for="name"
>
Name
</label>
<input
class="sc-AxhCb biYFdn overflow-hidden w-full bg-theme-background appearance-none rounded border border-theme-neutral-300 text-theme-neutral-900 transition-colors duration-200 px-4 py-3 "
data-testid="Input"
name="name"
/>
</fieldset>
<fieldset
class="sc-AxiKw iQzisX flex flex-col space-y-2"
>
<label
class="flex inline-block mb-2 text-sm font-medium FormLabel transition-colors duration-100 text-theme-neutral-dark"
data-testid="FormLabel"
for="peer-ip"
>
IP
</label>
<input
class="sc-AxhCb biYFdn overflow-hidden w-full bg-theme-background appearance-none rounded border border-theme-neutral-300 text-theme-neutral-900 transition-colors duration-200 px-4 py-3 "
data-testid="Input"
name="peer-ip"
/>
</fieldset>
<fieldset
class="sc-AxiKw iQzisX flex flex-col space-y-2"
>
<label
class="flex inline-block mb-2 text-sm font-medium FormLabel transition-colors duration-100 text-theme-neutral-dark"
data-testid="FormLabel"
for="peer-type"
>
Type
</label>
<label
class="inline-flex items-center"
for="multisig"
>
<input
class="sc-AxirZ dMNlTF"
color="success"
type="checkbox"
/>
<span
class="ml-2 text-sm font-semibold text-theme-neutral-dark"
>
Multisignature
</span>
</label>
</fieldset>
<div
class="flex justify-end mt-4"
>
<button
class="sc-AxjAm ddQVWI"
color="primary"
data-testid="peer-list__add-button"
type="submit"
>
Add Peer
</button>
</div>
</form>
</div>
</div>
</div>
</DocumentFragment>
`;