]> source.dussan.org Git - sonarqube.git/blob
f0b52ade1c0c8cd89cfa57f9f208750581d88ab7
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders 1`] = `
4 <td
5   className="thin nowrap"
6 >
7   <ActionsDropdown
8     className="js-task-action"
9   >
10     <ActionsDropdownItem
11       className="js-task-filter"
12       onClick={[Function]}
13     >
14       background_tasks.filter_by_component_x.Foo
15     </ActionsDropdownItem>
16     <ActionsDropdownItem
17       className="js-task-cancel"
18       destructive={true}
19       onClick={[Function]}
20     >
21       background_tasks.cancel_task
22     </ActionsDropdownItem>
23   </ActionsDropdown>
24 </td>
25 `;
26
27 exports[`renders 2`] = `
28 <td
29   className="thin nowrap"
30 >
31   <ActionsDropdown
32     className="js-task-action"
33   >
34     <ActionsDropdownItem
35       className="js-task-filter"
36       onClick={[Function]}
37     >
38       background_tasks.filter_by_component_x.Foo
39     </ActionsDropdownItem>
40   </ActionsDropdown>
41 </td>
42 `;
43
44 exports[`renders 3`] = `
45 <td
46   className="thin nowrap"
47 >
48   <ActionsDropdown
49     className="js-task-action"
50   >
51     <ActionsDropdownItem
52       className="js-task-filter"
53       onClick={[Function]}
54     >
55       background_tasks.filter_by_component_x.Foo
56     </ActionsDropdownItem>
57     <ActionsDropdownItem
58       className="js-task-cancel"
59       destructive={true}
60       onClick={[Function]}
61     >
62       background_tasks.cancel_task
63     </ActionsDropdownItem>
64     <ActionsDropdownItem
65       className="js-task-show-scanner-context"
66       onClick={[Function]}
67     >
68       background_tasks.show_scanner_context
69     </ActionsDropdownItem>
70   </ActionsDropdown>
71 </td>
72 `;
73
74 exports[`renders 4`] = `
75 <td
76   className="thin nowrap"
77 >
78   <ActionsDropdown
79     className="js-task-action"
80   >
81     <ActionsDropdownItem
82       className="js-task-filter"
83       onClick={[Function]}
84     >
85       background_tasks.filter_by_component_x.Foo
86     </ActionsDropdownItem>
87     <ActionsDropdownItem
88       className="js-task-cancel"
89       destructive={true}
90       onClick={[Function]}
91     >
92       background_tasks.cancel_task
93     </ActionsDropdownItem>
94     <ActionsDropdownItem
95       className="js-task-show-stacktrace"
96       onClick={[Function]}
97     >
98       background_tasks.show_stacktrace
99     </ActionsDropdownItem>
100   </ActionsDropdown>
101 </td>
102 `;
103
104 exports[`renders 5`] = `
105 <td
106   className="thin nowrap"
107 >
108   <ActionsDropdown
109     className="js-task-action"
110   >
111     <ActionsDropdownItem
112       className="js-task-cancel"
113       destructive={true}
114       onClick={[Function]}
115     >
116       background_tasks.cancel_task
117     </ActionsDropdownItem>
118   </ActionsDropdown>
119 </td>
120 `;
121
122 exports[`shows scanner context 1`] = `
123 <ScannerContext
124   onClose={[Function]}
125   task={
126     {
127       "analysisId": "x123",
128       "componentKey": "foo",
129       "componentName": "Foo",
130       "componentQualifier": "TRK",
131       "hasScannerContext": true,
132       "id": "AXR8jg_0mF2ZsYr8Wzs2",
133       "status": "PENDING",
134       "submittedAt": "2020-09-11T11:45:35+0200",
135       "type": "REPORT",
136     }
137   }
138 />
139 `;
140
141 exports[`shows stack trace 1`] = `
142 <Stacktrace
143   onClose={[Function]}
144   task={
145     {
146       "analysisId": "x123",
147       "componentKey": "foo",
148       "componentName": "Foo",
149       "componentQualifier": "TRK",
150       "errorMessage": "error!",
151       "id": "AXR8jg_0mF2ZsYr8Wzs2",
152       "status": "PENDING",
153       "submittedAt": "2020-09-11T11:45:35+0200",
154       "type": "REPORT",
155     }
156   }
157 />
158 `;
159
160 exports[`shows warnings 1`] = `
161 <withCurrentUserContext(AnalysisWarningsModal)
162   componentKey="foo"
163   onClose={[Function]}
164   taskId="AXR8jg_0mF2ZsYr8Wzs2"
165 />
166 `;