]> source.dussan.org Git - sonarqube.git/blob
6cefea0b1b2aa2d003af19c1c539c9b2d7f02fdf
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`opens form 1`] = `
4 <div
5   className="display-flex-center"
6 >
7   <span
8     className="text-middle"
9   >
10     background_tasks.number_of_workers
11     <strong
12       className="little-spacer-left"
13     >
14       1
15     </strong>
16   </span>
17   <Tooltip
18     overlay="background_tasks.change_number_of_workers"
19   >
20     <EditButton
21       aria-label="background_tasks.change_number_of_workers"
22       className="js-edit button-small spacer-left"
23       onClick={[Function]}
24       title="edit"
25     />
26   </Tooltip>
27 </div>
28 `;
29
30 exports[`opens form 2`] = `
31 <div
32   className="display-flex-center"
33 >
34   <span
35     className="text-middle"
36   >
37     background_tasks.number_of_workers
38     <strong
39       className="little-spacer-left"
40     >
41       1
42     </strong>
43   </span>
44   <Tooltip
45     overlay="background_tasks.change_number_of_workers"
46   >
47     <EditButton
48       aria-label="background_tasks.change_number_of_workers"
49       className="js-edit button-small spacer-left"
50       onClick={[Function]}
51       title="edit"
52     />
53   </Tooltip>
54   <WorkersForm
55     onClose={[Function]}
56     workerCount={1}
57   />
58 </div>
59 `;
60
61 exports[`renders 1`] = `
62 <div
63   className="display-flex-center"
64 >
65   <span
66     className="text-middle"
67   >
68     background_tasks.number_of_workers
69     <i
70       className="spinner little-spacer-left"
71     />
72   </span>
73 </div>
74 `;
75
76 exports[`renders 2`] = `
77 <div
78   className="display-flex-center"
79 >
80   <span
81     className="text-middle"
82   >
83     background_tasks.number_of_workers
84     <strong
85       className="little-spacer-left"
86     >
87       1
88     </strong>
89   </span>
90   <Tooltip
91     overlay="background_tasks.change_number_of_workers"
92   >
93     <EditButton
94       aria-label="background_tasks.change_number_of_workers"
95       className="js-edit button-small spacer-left"
96       onClick={[Function]}
97       title="edit"
98     />
99   </Tooltip>
100 </div>
101 `;
102
103 exports[`renders 3`] = `
104 <div
105   className="display-flex-center"
106 >
107   <Tooltip
108     overlay="background_tasks.number_of_workers.warning"
109   >
110     <span
111       className="display-inline-flex-center little-spacer-right"
112     >
113       <AlertWarnIcon
114         fill="#d3d3d3"
115       />
116     </span>
117   </Tooltip>
118   <span
119     className="text-middle"
120   >
121     background_tasks.number_of_workers
122     <strong
123       className="little-spacer-left"
124     >
125       2
126     </strong>
127   </span>
128   <Tooltip
129     overlay="background_tasks.change_number_of_workers"
130   >
131     <EditButton
132       aria-label="background_tasks.change_number_of_workers"
133       className="js-edit button-small spacer-left"
134       onClick={[Function]}
135       title="edit"
136     />
137   </Tooltip>
138 </div>
139 `;
140
141 exports[`renders 4`] = `
142 <div
143   className="display-flex-center"
144 >
145   <Tooltip
146     overlay="background_tasks.number_of_workers.warning"
147   >
148     <span
149       className="display-inline-flex-center little-spacer-right"
150     >
151       <AlertWarnIcon
152         fill="#d3d3d3"
153       />
154     </span>
155   </Tooltip>
156   <span
157     className="text-middle"
158   >
159     background_tasks.number_of_workers
160     <strong
161       className="little-spacer-left"
162     >
163       2
164     </strong>
165   </span>
166   <HelpTooltip
167     className="spacer-left"
168     overlay={<NoWorkersSupportPopup />}
169   >
170     <PlusCircleIcon
171       fill="#4b9fd5"
172       size={12}
173     />
174   </HelpTooltip>
175 </div>
176 `;
177
178 exports[`updates worker count 1`] = `
179 <div
180   className="display-flex-center"
181 >
182   <span
183     className="text-middle"
184   >
185     background_tasks.number_of_workers
186     <strong
187       className="little-spacer-left"
188     >
189       1
190     </strong>
191   </span>
192   <Tooltip
193     overlay="background_tasks.change_number_of_workers"
194   >
195     <EditButton
196       aria-label="background_tasks.change_number_of_workers"
197       className="js-edit button-small spacer-left"
198       onClick={[Function]}
199       title="edit"
200     />
201   </Tooltip>
202   <WorkersForm
203     onClose={[Function]}
204     workerCount={1}
205   />
206 </div>
207 `;
208
209 exports[`updates worker count 2`] = `
210 <div
211   className="display-flex-center"
212 >
213   <Tooltip
214     overlay="background_tasks.number_of_workers.warning"
215   >
216     <span
217       className="display-inline-flex-center little-spacer-right"
218     >
219       <AlertWarnIcon
220         fill="#d3d3d3"
221       />
222     </span>
223   </Tooltip>
224   <span
225     className="text-middle"
226   >
227     background_tasks.number_of_workers
228     <strong
229       className="little-spacer-left"
230     >
231       7
232     </strong>
233   </span>
234   <Tooltip
235     overlay="background_tasks.change_number_of_workers"
236   >
237     <EditButton
238       aria-label="background_tasks.change_number_of_workers"
239       className="js-edit button-small spacer-left"
240       onClick={[Function]}
241       title="edit"
242     />
243   </Tooltip>
244 </div>
245 `;