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