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