]> source.dussan.org Git - sonarqube.git/blob
b6494ce70b2f9e7100588f987296648ff9d96bac
[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       ariaLabel="valid_input"
23       className="spacer-left text-middle"
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     >
55       <AlertErrorIcon
56         className="text-middle"
57       />
58       <span
59         className="little-spacer-left text-danger text-middle"
60       >
61         Field error message
62       </span>
63     </div>
64   </div>
65   <div
66     className="note abs-width-400"
67   >
68     My description
69   </div>
70 </div>
71 `;
72
73 exports[`should render correctly: no label 1`] = `
74 <div>
75   <div
76     className="little-spacer-top spacer-bottom"
77   >
78     <div />
79     <AlertSuccessIcon
80       ariaLabel="valid_input"
81       className="spacer-left text-middle"
82     />
83   </div>
84   <div
85     className="note abs-width-400"
86   >
87     My description
88   </div>
89 </div>
90 `;
91
92 exports[`should render correctly: with error 1`] = `
93 <div>
94   <label
95     htmlFor="field-id"
96   >
97     <span
98       className="text-middle"
99     >
100       <strong>
101         Field label
102       </strong>
103     </span>
104   </label>
105   <div
106     className="little-spacer-top spacer-bottom"
107   >
108     <div />
109     <AlertErrorIcon
110       className="spacer-left text-middle"
111     />
112     <span
113       className="little-spacer-left text-danger text-middle"
114     >
115       Field error message
116     </span>
117   </div>
118   <div
119     className="note abs-width-400"
120   >
121     <div>
122       My description
123     </div>
124   </div>
125 </div>
126 `;
127
128 exports[`should render correctly: with help 1`] = `
129 <div>
130   <label
131     htmlFor="field-id"
132   >
133     <span
134       className="text-middle"
135     >
136       <strong>
137         Field label
138       </strong>
139       <MandatoryFieldMarker />
140     </span>
141     <HelpTooltip
142       className="spacer-left"
143       overlay="Help message"
144     />
145   </label>
146   <div
147     className="little-spacer-top spacer-bottom"
148   >
149     <div />
150   </div>
151   <div
152     className="note abs-width-400"
153   >
154     My description
155   </div>
156 </div>
157 `;