]> source.dussan.org Git - sonarqube.git/blob
c054a76bac9bf8d72bfdefaea5a764f296737073
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should correctly hide upgrade/uninstall buttons 1`] = `
4 <div
5   className="boxed-group boxed-group-inner marketplace-edition"
6 >
7   <EditionBoxBadge
8     editionKey="foo"
9     status={
10       Object {
11         "currentEditionKey": "",
12         "installationStatus": "NONE",
13         "nextEditionKey": "",
14       }
15     }
16   />
17   <div>
18     <h3
19       className="spacer-bottom"
20     >
21       Foo
22     </h3>
23     <p>
24       Foo desc
25     </p>
26   </div>
27   <div
28     className="marketplace-edition-action spacer-top"
29   >
30     <a
31       href="more_url"
32       target="_blank"
33     >
34       marketplace.learn_more
35     </a>
36   </div>
37 </div>
38 `;
39
40 exports[`should correctly hide upgrade/uninstall buttons 2`] = `
41 <div
42   className="boxed-group boxed-group-inner marketplace-edition"
43 >
44   <EditionBoxBadge
45     editionKey="foo"
46     status={
47       Object {
48         "currentEditionKey": "foo",
49         "installationStatus": "NONE",
50         "nextEditionKey": "",
51       }
52     }
53   />
54   <div>
55     <h3
56       className="spacer-bottom"
57     >
58       Foo
59     </h3>
60     <p>
61       Foo desc
62     </p>
63   </div>
64   <div
65     className="marketplace-edition-action spacer-top"
66   >
67     <a
68       href="more_url"
69       target="_blank"
70     >
71       marketplace.learn_more
72     </a>
73   </div>
74 </div>
75 `;
76
77 exports[`should disable uninstall button 1`] = `
78 <div
79   className="boxed-group boxed-group-inner marketplace-edition"
80 >
81   <EditionBoxBadge
82     editionKey="foo"
83     status={
84       Object {
85         "currentEditionKey": "foo",
86         "installationStatus": "AUTOMATIC_IN_PROGRESS",
87         "nextEditionKey": "foo",
88       }
89     }
90   />
91   <div>
92     <h3
93       className="spacer-bottom"
94     >
95       Foo
96     </h3>
97     <p>
98       Foo desc
99     </p>
100   </div>
101   <div
102     className="marketplace-edition-action spacer-top"
103   >
104     <a
105       href="more_url"
106       target="_blank"
107     >
108       marketplace.learn_more
109     </a>
110     <button
111       className="button-red"
112       disabled={true}
113       onClick={[Function]}
114     >
115       marketplace.uninstall
116     </button>
117   </div>
118 </div>
119 `;
120
121 exports[`should disable upgrade button 1`] = `
122 <div
123   className="boxed-group boxed-group-inner marketplace-edition"
124 >
125   <EditionBoxBadge
126     editionKey="foo"
127     status={
128       Object {
129         "currentEditionKey": "",
130         "installationStatus": "AUTOMATIC_IN_PROGRESS",
131         "nextEditionKey": "foo",
132       }
133     }
134   />
135   <div>
136     <h3
137       className="spacer-bottom"
138     >
139       Foo
140     </h3>
141     <p>
142       Foo desc
143     </p>
144   </div>
145   <div
146     className="marketplace-edition-action spacer-top"
147   >
148     <a
149       href="more_url"
150       target="_blank"
151     >
152       marketplace.learn_more
153     </a>
154     <button
155       disabled={true}
156       onClick={[Function]}
157     >
158       marketplace.upgrade
159     </button>
160   </div>
161 </div>
162 `;
163
164 exports[`should disable upgrade button 2`] = `
165 <div
166   className="boxed-group boxed-group-inner marketplace-edition"
167 >
168   <EditionBoxBadge
169     editionKey="foo"
170     status={
171       Object {
172         "currentEditionKey": "",
173         "installationStatus": "AUTOMATIC_READY",
174         "nextEditionKey": "foo",
175       }
176     }
177   />
178   <div>
179     <h3
180       className="spacer-bottom"
181     >
182       Foo
183     </h3>
184     <p>
185       Foo desc
186     </p>
187   </div>
188   <div
189     className="marketplace-edition-action spacer-top"
190   >
191     <a
192       href="more_url"
193       target="_blank"
194     >
195       marketplace.learn_more
196     </a>
197     <button
198       disabled={true}
199       onClick={[Function]}
200     >
201       marketplace.upgrade
202     </button>
203   </div>
204 </div>
205 `;
206
207 exports[`should display a downgrade button 1`] = `
208 <div
209   className="boxed-group boxed-group-inner marketplace-edition"
210 >
211   <EditionBoxBadge
212     editionKey="foo"
213     status={
214       Object {
215         "currentEditionKey": "",
216         "installationStatus": "NONE",
217         "nextEditionKey": "",
218       }
219     }
220   />
221   <div>
222     <h3
223       className="spacer-bottom"
224     >
225       Foo
226     </h3>
227     <p>
228       Foo desc
229     </p>
230   </div>
231   <div
232     className="marketplace-edition-action spacer-top"
233   >
234     <a
235       href="more_url"
236       target="_blank"
237     >
238       marketplace.learn_more
239     </a>
240     <button
241       disabled={false}
242       onClick={[Function]}
243     >
244       marketplace.downgrade
245     </button>
246   </div>
247 </div>
248 `;
249
250 exports[`should display the edition 1`] = `
251 <div
252   className="boxed-group boxed-group-inner marketplace-edition"
253 >
254   <EditionBoxBadge
255     editionKey="foo"
256     status={
257       Object {
258         "currentEditionKey": "",
259         "installationStatus": "NONE",
260         "nextEditionKey": "",
261       }
262     }
263   />
264   <div>
265     <h3
266       className="spacer-bottom"
267     >
268       Foo
269     </h3>
270     <p>
271       Foo desc
272     </p>
273   </div>
274   <div
275     className="marketplace-edition-action spacer-top"
276   >
277     <a
278       href="more_url"
279       target="_blank"
280     >
281       marketplace.learn_more
282     </a>
283     <button
284       disabled={false}
285       onClick={[Function]}
286     >
287       marketplace.upgrade
288     </button>
289   </div>
290 </div>
291 `;