]> source.dussan.org Git - sonarqube.git/blob
695a64c9c4ec9b8ce06b20820c89885ead477a64
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders correctly: branch 1`] = `
4 <Alert
5   display="banner"
6   variant="error"
7 >
8   <FormattedMessage
9     defaultMessage="component_navigation.status.failed_branch_X"
10     id="component_navigation.status.failed_branch_X"
11     values={
12       Object {
13         "branch": "my/branch",
14         "stacktrace": undefined,
15         "type": "background_task.type.REPORT",
16         "url": undefined,
17       }
18     }
19   />
20 </Alert>
21 `;
22
23 exports[`renders correctly: branch for admins 1`] = `
24 <Alert
25   display="banner"
26   variant="error"
27 >
28   <FormattedMessage
29     defaultMessage="component_navigation.status.failed_branch_X"
30     id="component_navigation.status.failed_branch_X"
31     values={
32       Object {
33         "branch": "my/branch",
34         "stacktrace": undefined,
35         "type": "background_task.type.REPORT",
36         "url": undefined,
37       }
38     }
39   />
40 </Alert>
41 `;
42
43 exports[`renders correctly: default 1`] = `
44 <Alert
45   display="banner"
46   variant="error"
47 >
48   <FormattedMessage
49     defaultMessage="component_navigation.status.failed_X"
50     id="component_navigation.status.failed_X"
51     values={
52       Object {
53         "branch": undefined,
54         "stacktrace": undefined,
55         "type": "background_task.type.REPORT",
56         "url": undefined,
57       }
58     }
59   />
60 </Alert>
61 `;
62
63 exports[`renders correctly: in progress 1`] = `
64 <Alert
65   display="banner"
66   variant="info"
67 >
68   <FormattedMessage
69     defaultMessage="component_navigation.status.in_progress_X"
70     id="component_navigation.status.in_progress_X"
71     values={
72       Object {
73         "branch": undefined,
74         "stacktrace": undefined,
75         "type": "background_task.type.REPORT",
76         "url": undefined,
77       }
78     }
79   />
80 </Alert>
81 `;
82
83 exports[`renders correctly: license issue 1`] = `
84 <Connect(withAppState(ComponentNavLicenseNotif))
85   currentTask={
86     Object {
87       "analysisId": "x123",
88       "componentKey": "foo",
89       "componentName": "Foo",
90       "componentQualifier": "TRK",
91       "errorMessage": "Foo",
92       "errorType": "LICENSING",
93       "id": "AXR8jg_0mF2ZsYr8Wzs2",
94       "status": "FAILED",
95       "submittedAt": "2020-09-11T11:45:35+0200",
96       "type": "REPORT",
97     }
98   }
99 />
100 `;
101
102 exports[`renders correctly: no current task 1`] = `""`;
103
104 exports[`renders correctly: on background task page 1`] = `
105 <Alert
106   display="banner"
107   variant="error"
108 >
109   <FormattedMessage
110     defaultMessage="component_navigation.status.failed_X.admin.help"
111     id="component_navigation.status.failed_X.admin.help"
112     values={
113       Object {
114         "branch": undefined,
115         "stacktrace": "background_tasks.show_stacktrace",
116         "type": "background_task.type.REPORT",
117         "url": undefined,
118       }
119     }
120   />
121 </Alert>
122 `;
123
124 exports[`renders correctly: on background task page for branch 1`] = `
125 <Alert
126   display="banner"
127   variant="error"
128 >
129   <FormattedMessage
130     defaultMessage="component_navigation.status.failed_branch_X.admin.help"
131     id="component_navigation.status.failed_branch_X.admin.help"
132     values={
133       Object {
134         "branch": "my/branch",
135         "stacktrace": "background_tasks.show_stacktrace",
136         "type": "background_task.type.REPORT",
137         "url": undefined,
138       }
139     }
140   />
141 </Alert>
142 `;
143
144 exports[`renders correctly: pending 1`] = `
145 <Alert
146   display="banner"
147   variant="info"
148 >
149   <FormattedMessage
150     defaultMessage="component_navigation.status.pending_X"
151     id="component_navigation.status.pending_X"
152     values={
153       Object {
154         "branch": undefined,
155         "stacktrace": undefined,
156         "type": "background_task.type.REPORT",
157         "url": undefined,
158       }
159     }
160   />
161 </Alert>
162 `;
163
164 exports[`renders correctly: pending for admins 1`] = `
165 <Alert
166   display="banner"
167   variant="info"
168 >
169   <FormattedMessage
170     defaultMessage="component_navigation.status.pending_X.admin.link"
171     id="component_navigation.status.pending_X.admin.link"
172     values={
173       Object {
174         "branch": undefined,
175         "stacktrace": undefined,
176         "type": "background_task.type.REPORT",
177         "url": <Link
178           onlyActiveOnIndex={false}
179           style={Object {}}
180           to={
181             Object {
182               "pathname": "/project/background_tasks",
183               "query": Object {
184                 "id": "my-project",
185                 "status": "__ALL__",
186               },
187             }
188           }
189         >
190           background_tasks.page
191         </Link>,
192       }
193     }
194   />
195 </Alert>
196 `;
197
198 exports[`renders correctly: pull request 1`] = `
199 <Alert
200   display="banner"
201   variant="error"
202 >
203   <FormattedMessage
204     defaultMessage="component_navigation.status.failed_branch_X.admin.link"
205     id="component_navigation.status.failed_branch_X.admin.link"
206     values={
207       Object {
208         "branch": "650 - feature/my_pr",
209         "stacktrace": undefined,
210         "type": "background_task.type.REPORT",
211         "url": <Link
212           onlyActiveOnIndex={false}
213           style={Object {}}
214           to={
215             Object {
216               "pathname": "/project/background_tasks",
217               "query": Object {
218                 "id": "my-project",
219                 "status": undefined,
220               },
221             }
222           }
223         >
224           background_tasks.page
225         </Link>,
226       }
227     }
228   />
229 </Alert>
230 `;
231
232 exports[`renders correctly: pull request for admins 1`] = `
233 <Alert
234   display="banner"
235   variant="error"
236 >
237   <FormattedMessage
238     defaultMessage="component_navigation.status.failed_branch_X.admin.link"
239     id="component_navigation.status.failed_branch_X.admin.link"
240     values={
241       Object {
242         "branch": "650 - feature/my_pr",
243         "stacktrace": undefined,
244         "type": "background_task.type.REPORT",
245         "url": <Link
246           onlyActiveOnIndex={false}
247           style={Object {}}
248           to={
249             Object {
250               "pathname": "/project/background_tasks",
251               "query": Object {
252                 "id": "my-project",
253                 "status": undefined,
254               },
255             }
256           }
257         >
258           background_tasks.page
259         </Link>,
260       }
261     }
262   />
263 </Alert>
264 `;