]> source.dussan.org Git - sonarqube.git/blob
f3363add97f38e49d8b2dfdecf716dce2995d214
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: initial 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <Helmet
8     defer={false}
9     encodeSpecialCharacters={true}
10     prioritizeSeoTags={false}
11     title="background_tasks.page"
12   />
13   <i
14     className="spinner"
15   />
16 </div>
17 `;
18
19 exports[`should render correctly: loaded 1`] = `
20 <main
21   className="page page-limited"
22 >
23   <Suggestions
24     suggestions="background_tasks"
25   />
26   <Helmet
27     defer={false}
28     encodeSpecialCharacters={true}
29     prioritizeSeoTags={false}
30     title="background_tasks.page"
31   />
32   <Header
33     component={
34       {
35         "breadcrumbs": [],
36         "key": "foo",
37         "name": "MyProject",
38         "qualifier": "TRK",
39         "qualityGate": {
40           "isDefault": true,
41           "key": "30",
42           "name": "Sonar way",
43         },
44         "qualityProfiles": [
45           {
46             "deleted": false,
47             "key": "my-qp",
48             "language": "ts",
49             "name": "Sonar way",
50           },
51         ],
52         "tags": [],
53       }
54     }
55   />
56   <Stats
57     component={
58       {
59         "breadcrumbs": [],
60         "key": "foo",
61         "name": "MyProject",
62         "qualifier": "TRK",
63         "qualityGate": {
64           "isDefault": true,
65           "key": "30",
66           "name": "Sonar way",
67         },
68         "qualityProfiles": [
69           {
70             "deleted": false,
71             "key": "my-qp",
72             "language": "ts",
73             "name": "Sonar way",
74           },
75         ],
76         "tags": [],
77       }
78     }
79     failingCount={15}
80     onCancelAllPending={[Function]}
81     onShowFailing={[Function]}
82     pendingCount={0}
83   />
84   <Search
85     component={
86       {
87         "breadcrumbs": [],
88         "key": "foo",
89         "name": "MyProject",
90         "qualifier": "TRK",
91         "qualityGate": {
92           "isDefault": true,
93           "key": "30",
94           "name": "Sonar way",
95         },
96         "qualityProfiles": [
97           {
98             "deleted": false,
99             "key": "my-qp",
100             "language": "ts",
101             "name": "Sonar way",
102           },
103         ],
104         "tags": [],
105       }
106     }
107     currents="__ALL__"
108     loading={false}
109     onFilterUpdate={[Function]}
110     onReload={[Function]}
111     query=""
112     status="__ALL_EXCEPT_PENDING__"
113     taskType="ALL_TYPES"
114     types={
115       {
116         "taskTypes": [
117           "REPORT",
118           "PROJECT_EXPORT",
119           "PROJECT_IMPORT",
120           "VIEW_REFRESH",
121         ],
122       }
123     }
124   />
125   <withAppStateContext(Tasks)
126     component={
127       {
128         "breadcrumbs": [],
129         "key": "foo",
130         "name": "MyProject",
131         "qualifier": "TRK",
132         "qualityGate": {
133           "isDefault": true,
134           "key": "30",
135           "name": "Sonar way",
136         },
137         "qualityProfiles": [
138           {
139             "deleted": false,
140             "key": "my-qp",
141             "language": "ts",
142             "name": "Sonar way",
143           },
144         ],
145         "tags": [],
146       }
147     }
148     loading={false}
149     onCancelTask={[Function]}
150     onFilterTask={[Function]}
151     tasks={
152       [
153         {
154           "componentId": "AWBLZYhGOUrjxRA-u6ex",
155           "componentKey": "sonar-csharp",
156           "componentName": "SonarC#",
157           "componentQualifier": "APP",
158           "errorMessage": "Analyses suspended. Please set a valid license for the Edition you installed.",
159           "errorType": "LICENSING",
160           "executedAt": "2019-02-19T16:47:36+0100",
161           "executionTimeMs": 16,
162           "hasScannerContext": false,
163           "id": "AWkGcOThOiAPiP5AE-kM",
164           "logs": false,
165           "nodeName": "node_CE_server_1",
166           "startedAt": "2019-02-19T16:47:36+0100",
167           "status": "FAILED",
168           "submittedAt": "2019-02-19T16:47:35+0100",
169           "type": "VIEW_REFRESH",
170           "warningCount": 0,
171           "warnings": [],
172         },
173         {
174           "componentId": "AV2ZaHs1Wa2znA6pDz1l",
175           "componentKey": "c-cpp-build-wrapper",
176           "componentName": "C/C++ Build Wrapper",
177           "componentQualifier": "APP",
178           "executedAt": "2019-02-19T16:47:36+0100",
179           "executionTimeMs": 19,
180           "hasScannerContext": false,
181           "id": "AWkGcOThOiAPiP5AE-kL",
182           "logs": false,
183           "startedAt": "2019-02-19T16:47:36+0100",
184           "status": "SUCCESS",
185           "submittedAt": "2019-02-19T16:47:35+0100",
186           "type": "VIEW_REFRESH",
187           "warningCount": 0,
188           "warnings": [],
189         },
190       ]
191     }
192   />
193   <ListFooter
194     count={2}
195     loadMore={[Function]}
196     loading={false}
197     total={2}
198   />
199 </main>
200 `;