]> source.dussan.org Git - sonarqube.git/blob
2789a48d4415b2970af345afaed04638a3b8707e
[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   <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           "startedAt": "2019-02-19T16:47:36+0100",
160           "status": "FAILED",
161           "submittedAt": "2019-02-19T16:47:35+0100",
162           "type": "VIEW_REFRESH",
163           "warningCount": 0,
164           "warnings": [],
165         },
166         {
167           "componentId": "AV2ZaHs1Wa2znA6pDz1l",
168           "componentKey": "c-cpp-build-wrapper",
169           "componentName": "C/C++ Build Wrapper",
170           "componentQualifier": "APP",
171           "executedAt": "2019-02-19T16:47:36+0100",
172           "executionTimeMs": 19,
173           "hasScannerContext": false,
174           "id": "AWkGcOThOiAPiP5AE-kL",
175           "logs": false,
176           "startedAt": "2019-02-19T16:47:36+0100",
177           "status": "SUCCESS",
178           "submittedAt": "2019-02-19T16:47:35+0100",
179           "type": "VIEW_REFRESH",
180           "warningCount": 0,
181           "warnings": [],
182         },
183       ]
184     }
185   />
186   <ListFooter
187     count={2}
188     loadMore={[Function]}
189     loading={false}
190     total={2}
191   />
192 </div>
193 `;