]> source.dussan.org Git - sonarqube.git/blob
22173c3d13f771fb44a0567cbabd08d3a0b33889
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <div
8     className="overview page-with-sidebar"
9   >
10     <div
11       className="overview-main page-main"
12     >
13       <AnalyzeTutorial
14         component={
15           Object {
16             "breadcrumbs": Array [],
17             "key": "my-project",
18             "name": "MyProject",
19             "organization": "foo",
20             "qualifier": "TRK",
21             "qualityGate": Object {
22               "isDefault": true,
23               "key": "30",
24               "name": "Sonar way",
25             },
26             "qualityProfiles": Array [
27               Object {
28                 "deleted": false,
29                 "key": "my-qp",
30                 "language": "ts",
31                 "name": "Sonar way",
32               },
33             ],
34             "tags": Array [],
35             "version": "0.0.1",
36           }
37         }
38         currentUser={
39           Object {
40             "groups": Array [],
41             "isLoggedIn": true,
42             "login": "luke",
43             "name": "Skywalker",
44             "scmAccounts": Array [],
45           }
46         }
47       />
48     </div>
49     <div
50       className="overview-sidebar page-sidebar-fixed"
51     >
52       <Connect(Meta)
53         branchLike={
54           Object {
55             "analysisDate": "2018-01-01",
56             "isMain": true,
57             "name": "master",
58           }
59         }
60         component={
61           Object {
62             "breadcrumbs": Array [],
63             "key": "my-project",
64             "name": "MyProject",
65             "organization": "foo",
66             "qualifier": "TRK",
67             "qualityGate": Object {
68               "isDefault": true,
69               "key": "30",
70               "name": "Sonar way",
71             },
72             "qualityProfiles": Array [
73               Object {
74                 "deleted": false,
75                 "key": "my-qp",
76                 "language": "ts",
77                 "name": "Sonar way",
78               },
79             ],
80             "tags": Array [],
81             "version": "0.0.1",
82           }
83         }
84         onComponentChange={[MockFunction]}
85       />
86     </div>
87   </div>
88 </div>
89 `;
90
91 exports[`should not render the tutorial 1`] = `
92 <div
93   className="page page-limited"
94 >
95   <div
96     className="overview page-with-sidebar"
97   >
98     <div
99       className="overview-main page-main"
100     />
101     <div
102       className="overview-sidebar page-sidebar-fixed"
103     >
104       <Connect(Meta)
105         branchLike={
106           Object {
107             "analysisDate": "2018-01-01",
108             "isMain": true,
109             "name": "master",
110           }
111         }
112         component={
113           Object {
114             "breadcrumbs": Array [],
115             "key": "my-project",
116             "name": "MyProject",
117             "organization": "foo",
118             "qualifier": "TRK",
119             "qualityGate": Object {
120               "isDefault": true,
121               "key": "30",
122               "name": "Sonar way",
123             },
124             "qualityProfiles": Array [
125               Object {
126                 "deleted": false,
127                 "key": "my-qp",
128                 "language": "ts",
129                 "name": "Sonar way",
130               },
131             ],
132             "tags": Array [],
133             "version": "0.0.1",
134           }
135         }
136         onComponentChange={[MockFunction]}
137       />
138     </div>
139   </div>
140 </div>
141 `;
142
143 exports[`should render another message when there are branches 1`] = `
144 <div
145   className="page page-limited"
146 >
147   <div
148     className="overview page-with-sidebar"
149   >
150     <div
151       className="overview-main page-main"
152     >
153       <WarningMessage
154         branchLike={
155           Object {
156             "analysisDate": "2018-01-01",
157             "isMain": true,
158             "name": "master",
159           }
160         }
161         message="provisioning.no_analysis_on_main_branch"
162       />
163     </div>
164     <div
165       className="overview-sidebar page-sidebar-fixed"
166     >
167       <Connect(Meta)
168         branchLike={
169           Object {
170             "analysisDate": "2018-01-01",
171             "isMain": true,
172             "name": "master",
173           }
174         }
175         component={
176           Object {
177             "breadcrumbs": Array [],
178             "key": "my-project",
179             "name": "MyProject",
180             "organization": "foo",
181             "qualifier": "TRK",
182             "qualityGate": Object {
183               "isDefault": true,
184               "key": "30",
185               "name": "Sonar way",
186             },
187             "qualityProfiles": Array [
188               Object {
189                 "deleted": false,
190                 "key": "my-qp",
191                 "language": "ts",
192                 "name": "Sonar way",
193               },
194             ],
195             "tags": Array [],
196             "version": "0.0.1",
197           }
198         }
199         onComponentChange={[MockFunction]}
200       />
201     </div>
202   </div>
203 </div>
204 `;
205
206 exports[`should render another message when there are branches 2`] = `
207 <div
208   className="page page-limited"
209 >
210   <div
211     className="overview page-with-sidebar"
212   >
213     <div
214       className="overview-main page-main"
215     >
216       <WarningMessage
217         branchLike={
218           Object {
219             "analysisDate": "2018-01-01",
220             "isMain": true,
221             "name": "master",
222           }
223         }
224         message="provisioning.no_analysis_on_main_branch.bad_configuration"
225       />
226     </div>
227     <div
228       className="overview-sidebar page-sidebar-fixed"
229     >
230       <Connect(Meta)
231         branchLike={
232           Object {
233             "analysisDate": "2018-01-01",
234             "isMain": true,
235             "name": "master",
236           }
237         }
238         component={
239           Object {
240             "breadcrumbs": Array [],
241             "key": "my-project",
242             "name": "MyProject",
243             "organization": "foo",
244             "qualifier": "TRK",
245             "qualityGate": Object {
246               "isDefault": true,
247               "key": "30",
248               "name": "Sonar way",
249             },
250             "qualityProfiles": Array [
251               Object {
252                 "deleted": false,
253                 "key": "my-qp",
254                 "language": "ts",
255                 "name": "Sonar way",
256               },
257             ],
258             "tags": Array [],
259             "version": "0.0.1",
260           }
261         }
262         onComponentChange={[MockFunction]}
263       />
264     </div>
265   </div>
266 </div>
267 `;
268
269 exports[`should render warning message 1`] = `
270 <Alert
271   variant="warning"
272 >
273   <FormattedMessage
274     defaultMessage="foo"
275     id="foo"
276     values={
277       Object {
278         "branchName": "master",
279         "branchType": <div
280           className="outline-badge text-baseline"
281         >
282           branches.main_branch
283         </div>,
284       }
285     }
286   />
287 </Alert>
288 `;