]> source.dussan.org Git - sonarqube.git/blob
28eda6a8c393845c47f784690ee9432ca24d99b2
[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 sonarcloud"
12     >
13       <AnalyzeTutorial
14         component={
15           Object {
16             "analysisDate": "2016-01-01",
17             "breadcrumbs": Array [],
18             "key": "foo",
19             "name": "Foo",
20             "organization": "org",
21             "qualifier": "TRK",
22             "version": "0.0.1",
23           }
24         }
25         currentUser={
26           Object {
27             "isLoggedIn": true,
28             "login": "luke",
29             "name": "Skywalker",
30           }
31         }
32       />
33     </div>
34     <div
35       className="overview-sidebar page-sidebar-fixed"
36     >
37       <Connect(Meta)
38         branchLike={
39           Object {
40             "isMain": true,
41             "name": "b",
42             "type": "LONG",
43           }
44         }
45         component={
46           Object {
47             "analysisDate": "2016-01-01",
48             "breadcrumbs": Array [],
49             "key": "foo",
50             "name": "Foo",
51             "organization": "org",
52             "qualifier": "TRK",
53             "version": "0.0.1",
54           }
55         }
56         onComponentChange={[MockFunction]}
57       />
58     </div>
59   </div>
60 </div>
61 `;
62
63 exports[`should not render the tutorial 1`] = `
64 <div
65   className="page page-limited"
66 >
67   <div
68     className="overview page-with-sidebar"
69   >
70     <div
71       className="overview-main page-main sonarcloud"
72     />
73     <div
74       className="overview-sidebar page-sidebar-fixed"
75     >
76       <Connect(Meta)
77         branchLike={
78           Object {
79             "isMain": true,
80             "name": "b",
81             "type": "LONG",
82           }
83         }
84         component={
85           Object {
86             "analysisDate": "2016-01-01",
87             "breadcrumbs": Array [],
88             "key": "foo",
89             "name": "Foo",
90             "organization": "org",
91             "qualifier": "TRK",
92             "version": "0.0.1",
93           }
94         }
95         onComponentChange={[MockFunction]}
96       />
97     </div>
98   </div>
99 </div>
100 `;
101
102 exports[`should render another message when there are branches 1`] = `
103 <div
104   className="page page-limited"
105 >
106   <div
107     className="overview page-with-sidebar"
108   >
109     <div
110       className="overview-main page-main sonarcloud"
111     >
112       <WarningMessage
113         branchLike={
114           Object {
115             "isMain": true,
116             "name": "b",
117             "type": "LONG",
118           }
119         }
120         message="provisioning.no_analysis_on_main_branch"
121       />
122     </div>
123     <div
124       className="overview-sidebar page-sidebar-fixed"
125     >
126       <Connect(Meta)
127         branchLike={
128           Object {
129             "isMain": true,
130             "name": "b",
131             "type": "LONG",
132           }
133         }
134         component={
135           Object {
136             "analysisDate": "2016-01-01",
137             "breadcrumbs": Array [],
138             "key": "foo",
139             "name": "Foo",
140             "organization": "org",
141             "qualifier": "TRK",
142             "version": "0.0.1",
143           }
144         }
145         onComponentChange={[MockFunction]}
146       />
147     </div>
148   </div>
149 </div>
150 `;
151
152 exports[`should render another message when there are branches 2`] = `
153 <div
154   className="page page-limited"
155 >
156   <div
157     className="overview page-with-sidebar"
158   >
159     <div
160       className="overview-main page-main sonarcloud"
161     >
162       <WarningMessage
163         branchLike={
164           Object {
165             "isMain": true,
166             "name": "b",
167             "type": "LONG",
168           }
169         }
170         message="provisioning.no_analysis_on_main_branch.bad_configuration"
171       />
172     </div>
173     <div
174       className="overview-sidebar page-sidebar-fixed"
175     >
176       <Connect(Meta)
177         branchLike={
178           Object {
179             "isMain": true,
180             "name": "b",
181             "type": "LONG",
182           }
183         }
184         component={
185           Object {
186             "analysisDate": "2016-01-01",
187             "breadcrumbs": Array [],
188             "key": "foo",
189             "name": "Foo",
190             "organization": "org",
191             "qualifier": "TRK",
192             "version": "0.0.1",
193           }
194         }
195         onComponentChange={[MockFunction]}
196       />
197     </div>
198   </div>
199 </div>
200 `;
201
202 exports[`should render warning message 1`] = `
203 <Alert
204   variant="warning"
205 >
206   <FormattedMessage
207     defaultMessage="foo"
208     id="foo"
209     values={
210       Object {
211         "branchName": "b",
212         "branchType": <div
213           className="outline-badge text-baseline"
214         >
215           branches.main_branch
216         </div>,
217       }
218     }
219   />
220 </Alert>
221 `;