]> source.dussan.org Git - sonarqube.git/blob
7951ffa70e3499306346f8fe59d0850d5e105465
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`opens form 1`] = `
4 <div>
5   background_tasks.number_of_workers
6   <strong
7     className="little-spacer-left"
8   >
9     1
10   </strong>
11   <Tooltip
12     overlay="background_tasks.change_number_of_workers"
13     placement="bottom"
14   >
15     <a
16       className="icon-edit spacer-left"
17       href="#"
18       onClick={[Function]}
19     />
20   </Tooltip>
21 </div>
22 `;
23
24 exports[`opens form 2`] = `
25 <div>
26   background_tasks.number_of_workers
27   <strong
28     className="little-spacer-left"
29   >
30     1
31   </strong>
32   <Tooltip
33     overlay="background_tasks.change_number_of_workers"
34     placement="bottom"
35   >
36     <a
37       className="icon-edit spacer-left"
38       href="#"
39       onClick={[Function]}
40     />
41   </Tooltip>
42   <WorkersForm
43     onClose={[Function]}
44     workerCount={1}
45   />
46 </div>
47 `;
48
49 exports[`renders 1`] = `
50 <div>
51   background_tasks.number_of_workers
52   <i
53     className="spinner little-spacer-left"
54   />
55 </div>
56 `;
57
58 exports[`renders 2`] = `
59 <div>
60   background_tasks.number_of_workers
61   <strong
62     className="little-spacer-left"
63   >
64     1
65   </strong>
66   <Tooltip
67     overlay="background_tasks.change_number_of_workers"
68     placement="bottom"
69   >
70     <a
71       className="icon-edit spacer-left"
72       href="#"
73       onClick={[Function]}
74     />
75   </Tooltip>
76 </div>
77 `;
78
79 exports[`renders 3`] = `
80 <div>
81   background_tasks.number_of_workers
82   <strong
83     className="little-spacer-left"
84   >
85     1
86   </strong>
87   <a
88     className="button button-promote spacer-left"
89     href="https://redirect.sonarsource.com/plugins/governance.html"
90     target="_blank"
91   >
92     background_tasks.add_more_with_governance
93   </a>
94 </div>
95 `;
96
97 exports[`renders 4`] = `
98 <div>
99   <Tooltip
100     overlay="background_tasks.number_of_workers.warning"
101     placement="bottom"
102   >
103     <i
104       className="icon-alert-warn little-spacer-right bt-workers-warning-icon"
105     />
106   </Tooltip>
107   background_tasks.number_of_workers
108   <strong
109     className="little-spacer-left"
110   >
111     2
112   </strong>
113   <a
114     className="button button-promote spacer-left"
115     href="https://redirect.sonarsource.com/plugins/governance.html"
116     target="_blank"
117   >
118     background_tasks.add_more_with_governance
119   </a>
120 </div>
121 `;
122
123 exports[`updates worker count 1`] = `
124 <div>
125   background_tasks.number_of_workers
126   <strong
127     className="little-spacer-left"
128   >
129     1
130   </strong>
131   <Tooltip
132     overlay="background_tasks.change_number_of_workers"
133     placement="bottom"
134   >
135     <a
136       className="icon-edit spacer-left"
137       href="#"
138       onClick={[Function]}
139     />
140   </Tooltip>
141   <WorkersForm
142     onClose={[Function]}
143     workerCount={1}
144   />
145 </div>
146 `;
147
148 exports[`updates worker count 2`] = `
149 <div>
150   <Tooltip
151     overlay="background_tasks.number_of_workers.warning"
152     placement="bottom"
153   >
154     <i
155       className="icon-alert-warn little-spacer-right bt-workers-warning-icon"
156     />
157   </Tooltip>
158   background_tasks.number_of_workers
159   <strong
160     className="little-spacer-left"
161   >
162     7
163   </strong>
164   <Tooltip
165     overlay="background_tasks.change_number_of_workers"
166     placement="bottom"
167   >
168     <a
169       className="icon-edit spacer-left"
170       href="#"
171       onClick={[Function]}
172     />
173   </Tooltip>
174 </div>
175 `;