]> source.dussan.org Git - sonarqube.git/blob
32dd5f7393623c858466160941a57752c2d4448a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <div>
5   <label
6     htmlFor="field-id"
7   >
8     <span
9       className="text-middle"
10     >
11       <strong>
12         Field label
13       </strong>
14       <MandatoryFieldMarker />
15     </span>
16   </label>
17   <div
18     className="little-spacer-top spacer-bottom"
19   >
20     <div />
21     <AlertSuccessIcon
22       className="spacer-left text-middle"
23       label="valid_input"
24     />
25   </div>
26   <div
27     className="note abs-width-400"
28   >
29     My description
30   </div>
31 </div>
32 `;
33
34 exports[`should render correctly: error under the input 1`] = `
35 <div>
36   <label
37     htmlFor="field-id"
38   >
39     <span
40       className="text-middle"
41     >
42       <strong>
43         Field label
44       </strong>
45       <MandatoryFieldMarker />
46     </span>
47   </label>
48   <div
49     className="little-spacer-top spacer-bottom"
50   >
51     <div />
52     <div
53       className="spacer-top"
54       style={
55         {
56           "display": "flex",
57         }
58       }
59     >
60       <AlertErrorIcon
61         className="text-middle"
62       />
63       <span
64         className="little-spacer-left text-danger text-middle"
65       >
66         Field error message
67       </span>
68     </div>
69   </div>
70   <div
71     className="note abs-width-400"
72   >
73     My description
74   </div>
75 </div>
76 `;
77
78 exports[`should render correctly: no label 1`] = `
79 <div>
80   <div
81     className="little-spacer-top spacer-bottom"
82   >
83     <div />
84     <AlertSuccessIcon
85       className="spacer-left text-middle"
86       label="valid_input"
87     />
88   </div>
89   <div
90     className="note abs-width-400"
91   >
92     My description
93   </div>
94 </div>
95 `;
96
97 exports[`should render correctly: with error 1`] = `
98 <div>
99   <label
100     htmlFor="field-id"
101   >
102     <span
103       className="text-middle"
104     >
105       <strong>
106         Field label
107       </strong>
108     </span>
109   </label>
110   <div
111     className="little-spacer-top spacer-bottom"
112   >
113     <div />
114     <AlertErrorIcon
115       className="spacer-left text-middle"
116     />
117     <span
118       className="little-spacer-left text-danger text-middle"
119     >
120       Field error message
121     </span>
122   </div>
123   <div
124     className="note abs-width-400"
125   >
126     <div>
127       My description
128     </div>
129   </div>
130 </div>
131 `;
132
133 exports[`should render correctly: with help 1`] = `
134 <div>
135   <label
136     htmlFor="field-id"
137   >
138     <span
139       className="text-middle"
140     >
141       <strong>
142         Field label
143       </strong>
144       <MandatoryFieldMarker />
145     </span>
146     <HelpTooltip
147       className="spacer-left"
148       overlay="Help message"
149     />
150   </label>
151   <div
152     className="little-spacer-top spacer-bottom"
153   >
154     <div />
155   </div>
156   <div
157     className="note abs-width-400"
158   >
159     My description
160   </div>
161 </div>
162 `;