foreman-tasks 12.1.1 → 12.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/app/views/foreman_tasks/api/tasks/show.json.rabl +1 -1
- data/foreman-tasks.gemspec +1 -3
- data/lib/foreman_tasks/version.rb +1 -1
- data/test/controllers/api/tasks_controller_test.rb +2 -2
- data/webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js +25 -5
- data/webpack/ForemanTasks/Components/TaskDetails/Components/RunningSteps.js +12 -4
- data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskInfo.js +217 -201
- data/webpack/ForemanTasks/Components/TaskDetails/Components/TaskSkeleton.js +30 -34
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Dependencies.test.js +30 -30
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js +50 -27
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Raw.test.js +44 -22
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js +56 -24
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js +42 -22
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/TaskInfo.test.js +45 -54
- data/webpack/ForemanTasks/Components/TaskDetails/TaskDetails.js +65 -25
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetails.test.js +37 -13
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/TaskDetailsActions.test.js +53 -8
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/PausedTasksCard.test.js +53 -7
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/RunningTasksCard.test.js +53 -7
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.js +5 -4
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/ScheduledTasksCard.test.js +44 -14
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/StoppedTasksCard.js +6 -5
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js +5 -4
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.scss +3 -8
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.test.js +75 -34
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChart.test.js +57 -34
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/TasksDonutChartHelper.test.js +23 -9
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.fixtures.js +14 -11
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js +19 -21
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.test.js +63 -14
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.js +9 -17
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/TimeDropDown.test.js +49 -13
- metadata +2 -45
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Errors.test.js.snap +0 -77
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Raw.test.js.snap +0 -174
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/RunningSteps.test.js.snap +0 -62
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/Task.test.js.snap +0 -127
- data/webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/__snapshots__/TaskInfo.test.js.snap +0 -580
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap +0 -172
- data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetailsActions.test.js.snap +0 -52
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/PausedTasksCard/__snapshots__/PausedTasksCard.test.js.snap +0 -38
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/RunningTasksCard/__snapshots__/RunningTasksCard.test.js.snap +0 -38
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/ScheduledTasksCard/__snapshots__/ScheduledTasksCard.test.js.snap +0 -97
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/__snapshots__/TasksDonutCard.test.js.snap +0 -183
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChart.test.js.snap +0 -302
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutChart/__snapshots__/TasksDonutChartHelper.test.js.snap +0 -21
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/__snapshots__/TasksCardsGrid.test.js.snap +0 -210
- data/webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/Components/TimeDropDown/__snapshots__/TimeDropDown.test.js.snap +0 -85
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TasksDonutChart render with focused-on last 1`] = `
|
|
4
|
-
<C3Chart
|
|
5
|
-
base="some-base-config"
|
|
6
|
-
className="donut-chart-pf tasks-donut-chart tasks-donut-selected"
|
|
7
|
-
color={
|
|
8
|
-
Object {
|
|
9
|
-
"pattern": Array [
|
|
10
|
-
"#C315C7",
|
|
11
|
-
"#0089C9",
|
|
12
|
-
],
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
data={
|
|
16
|
-
Object {
|
|
17
|
-
"columns": "some-columns",
|
|
18
|
-
"names": "some-names",
|
|
19
|
-
"onclick": [Function],
|
|
20
|
-
"onmouseout": [Function],
|
|
21
|
-
"onmouseover": [Function],
|
|
22
|
-
"type": "donut",
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
legend={
|
|
26
|
-
Object {
|
|
27
|
-
"item": Object {
|
|
28
|
-
"onclick": [Function],
|
|
29
|
-
"onmouseout": [Function],
|
|
30
|
-
"onmouseover": [Function],
|
|
31
|
-
},
|
|
32
|
-
"position": "right",
|
|
33
|
-
"show": true,
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
onChartCreate={[Function]}
|
|
37
|
-
size={
|
|
38
|
-
Object {
|
|
39
|
-
"height": 120,
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
type="donut"
|
|
43
|
-
/>
|
|
44
|
-
`;
|
|
45
|
-
|
|
46
|
-
exports[`TasksDonutChart render with focused-on none 1`] = `
|
|
47
|
-
<C3Chart
|
|
48
|
-
base="some-base-config"
|
|
49
|
-
className="donut-chart-pf tasks-donut-chart"
|
|
50
|
-
color={
|
|
51
|
-
Object {
|
|
52
|
-
"pattern": Array [
|
|
53
|
-
"#C315C7",
|
|
54
|
-
"#0089C9",
|
|
55
|
-
],
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
data={
|
|
59
|
-
Object {
|
|
60
|
-
"columns": "some-columns",
|
|
61
|
-
"names": "some-names",
|
|
62
|
-
"onclick": [Function],
|
|
63
|
-
"onmouseout": [Function],
|
|
64
|
-
"onmouseover": [Function],
|
|
65
|
-
"type": "donut",
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
legend={
|
|
69
|
-
Object {
|
|
70
|
-
"item": Object {
|
|
71
|
-
"onclick": [Function],
|
|
72
|
-
"onmouseout": [Function],
|
|
73
|
-
"onmouseover": [Function],
|
|
74
|
-
},
|
|
75
|
-
"position": "right",
|
|
76
|
-
"show": true,
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
onChartCreate={[Function]}
|
|
80
|
-
size={
|
|
81
|
-
Object {
|
|
82
|
-
"height": 120,
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
type="donut"
|
|
86
|
-
/>
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
exports[`TasksDonutChart render with focused-on normal 1`] = `
|
|
90
|
-
<C3Chart
|
|
91
|
-
base="some-base-config"
|
|
92
|
-
className="donut-chart-pf tasks-donut-chart"
|
|
93
|
-
color={
|
|
94
|
-
Object {
|
|
95
|
-
"pattern": Array [
|
|
96
|
-
"#C315C7",
|
|
97
|
-
"#0089C9",
|
|
98
|
-
],
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
data={
|
|
102
|
-
Object {
|
|
103
|
-
"columns": "some-columns",
|
|
104
|
-
"names": "some-names",
|
|
105
|
-
"onclick": [Function],
|
|
106
|
-
"onmouseout": [Function],
|
|
107
|
-
"onmouseover": [Function],
|
|
108
|
-
"type": "donut",
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
legend={
|
|
112
|
-
Object {
|
|
113
|
-
"item": Object {
|
|
114
|
-
"onclick": [Function],
|
|
115
|
-
"onmouseout": [Function],
|
|
116
|
-
"onmouseover": [Function],
|
|
117
|
-
},
|
|
118
|
-
"position": "right",
|
|
119
|
-
"show": true,
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
onChartCreate={[Function]}
|
|
123
|
-
size={
|
|
124
|
-
Object {
|
|
125
|
-
"height": 120,
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
type="donut"
|
|
129
|
-
/>
|
|
130
|
-
`;
|
|
131
|
-
|
|
132
|
-
exports[`TasksDonutChart render with focused-on older 1`] = `
|
|
133
|
-
<C3Chart
|
|
134
|
-
base="some-base-config"
|
|
135
|
-
className="donut-chart-pf tasks-donut-chart tasks-donut-selected"
|
|
136
|
-
color={
|
|
137
|
-
Object {
|
|
138
|
-
"pattern": Array [
|
|
139
|
-
"#C315C7",
|
|
140
|
-
"#0089C9",
|
|
141
|
-
],
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
data={
|
|
145
|
-
Object {
|
|
146
|
-
"columns": "some-columns",
|
|
147
|
-
"names": "some-names",
|
|
148
|
-
"onclick": [Function],
|
|
149
|
-
"onmouseout": [Function],
|
|
150
|
-
"onmouseover": [Function],
|
|
151
|
-
"type": "donut",
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
legend={
|
|
155
|
-
Object {
|
|
156
|
-
"item": Object {
|
|
157
|
-
"onclick": [Function],
|
|
158
|
-
"onmouseout": [Function],
|
|
159
|
-
"onmouseover": [Function],
|
|
160
|
-
},
|
|
161
|
-
"position": "right",
|
|
162
|
-
"show": true,
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
onChartCreate={[Function]}
|
|
166
|
-
size={
|
|
167
|
-
Object {
|
|
168
|
-
"height": 120,
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
type="donut"
|
|
172
|
-
/>
|
|
173
|
-
`;
|
|
174
|
-
|
|
175
|
-
exports[`TasksDonutChart render with focused-on total 1`] = `
|
|
176
|
-
<C3Chart
|
|
177
|
-
base="some-base-config"
|
|
178
|
-
className="donut-chart-pf tasks-donut-chart tasks-donut-selected"
|
|
179
|
-
color={
|
|
180
|
-
Object {
|
|
181
|
-
"pattern": Array [
|
|
182
|
-
"#C315C7",
|
|
183
|
-
"#0089C9",
|
|
184
|
-
],
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
data={
|
|
188
|
-
Object {
|
|
189
|
-
"columns": "some-columns",
|
|
190
|
-
"names": "some-names",
|
|
191
|
-
"onclick": [Function],
|
|
192
|
-
"onmouseout": [Function],
|
|
193
|
-
"onmouseover": [Function],
|
|
194
|
-
"type": "donut",
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
legend={
|
|
198
|
-
Object {
|
|
199
|
-
"item": Object {
|
|
200
|
-
"onclick": [Function],
|
|
201
|
-
"onmouseout": [Function],
|
|
202
|
-
"onmouseover": [Function],
|
|
203
|
-
},
|
|
204
|
-
"position": "right",
|
|
205
|
-
"show": true,
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
onChartCreate={[Function]}
|
|
209
|
-
size={
|
|
210
|
-
Object {
|
|
211
|
-
"height": 120,
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
type="donut"
|
|
215
|
-
/>
|
|
216
|
-
`;
|
|
217
|
-
|
|
218
|
-
exports[`TasksDonutChart render with minimal props 1`] = `
|
|
219
|
-
<C3Chart
|
|
220
|
-
base="some-base-config"
|
|
221
|
-
className="donut-chart-pf tasks-donut-chart"
|
|
222
|
-
color={
|
|
223
|
-
Object {
|
|
224
|
-
"pattern": Array [
|
|
225
|
-
"#C315C7",
|
|
226
|
-
"#0089C9",
|
|
227
|
-
],
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
data={
|
|
231
|
-
Object {
|
|
232
|
-
"columns": "some-columns",
|
|
233
|
-
"names": "some-names",
|
|
234
|
-
"onclick": [Function],
|
|
235
|
-
"onmouseout": [Function],
|
|
236
|
-
"onmouseover": [Function],
|
|
237
|
-
"type": "donut",
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
legend={
|
|
241
|
-
Object {
|
|
242
|
-
"item": Object {
|
|
243
|
-
"onclick": [Function],
|
|
244
|
-
"onmouseout": [Function],
|
|
245
|
-
"onmouseover": [Function],
|
|
246
|
-
},
|
|
247
|
-
"position": "right",
|
|
248
|
-
"show": true,
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
onChartCreate={[Function]}
|
|
252
|
-
size={
|
|
253
|
-
Object {
|
|
254
|
-
"height": 120,
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
type="donut"
|
|
258
|
-
/>
|
|
259
|
-
`;
|
|
260
|
-
|
|
261
|
-
exports[`TasksDonutChart render with props 1`] = `
|
|
262
|
-
<C3Chart
|
|
263
|
-
base="some-base-config"
|
|
264
|
-
className="donut-chart-pf tasks-donut-chart some-class"
|
|
265
|
-
color={
|
|
266
|
-
Object {
|
|
267
|
-
"pattern": Array [
|
|
268
|
-
"color1",
|
|
269
|
-
"color2",
|
|
270
|
-
],
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
data={
|
|
274
|
-
Object {
|
|
275
|
-
"columns": "some-columns",
|
|
276
|
-
"names": "some-names",
|
|
277
|
-
"onclick": [Function],
|
|
278
|
-
"onmouseout": [Function],
|
|
279
|
-
"onmouseover": [Function],
|
|
280
|
-
"type": "donut",
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
legend={
|
|
284
|
-
Object {
|
|
285
|
-
"item": Object {
|
|
286
|
-
"onclick": [Function],
|
|
287
|
-
"onmouseout": [Function],
|
|
288
|
-
"onmouseover": [Function],
|
|
289
|
-
},
|
|
290
|
-
"position": "right",
|
|
291
|
-
"show": true,
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
onChartCreate={[Function]}
|
|
295
|
-
size={
|
|
296
|
-
Object {
|
|
297
|
-
"height": 120,
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
type="donut"
|
|
301
|
-
/>
|
|
302
|
-
`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TasksDonutChartHelper should create chart-data 1`] = `
|
|
4
|
-
Object {
|
|
5
|
-
"columns": Array [
|
|
6
|
-
Array [
|
|
7
|
-
"last",
|
|
8
|
-
1,
|
|
9
|
-
],
|
|
10
|
-
Array [
|
|
11
|
-
"older",
|
|
12
|
-
3,
|
|
13
|
-
],
|
|
14
|
-
],
|
|
15
|
-
"names": Object {
|
|
16
|
-
"last": "1 Last 24h",
|
|
17
|
-
"older": "3 Older 24h",
|
|
18
|
-
},
|
|
19
|
-
"onItemClick": [Function],
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TasksCardsGrid render with minimal props 1`] = `
|
|
4
|
-
<CardGrid
|
|
5
|
-
className=""
|
|
6
|
-
fluid={true}
|
|
7
|
-
matchHeight={true}
|
|
8
|
-
>
|
|
9
|
-
<Row
|
|
10
|
-
bsClass="row"
|
|
11
|
-
componentClass="div"
|
|
12
|
-
>
|
|
13
|
-
<Col
|
|
14
|
-
bsClass="col"
|
|
15
|
-
componentClass="div"
|
|
16
|
-
key="running"
|
|
17
|
-
>
|
|
18
|
-
<RunningTasksCard
|
|
19
|
-
className=""
|
|
20
|
-
data={
|
|
21
|
-
Object {
|
|
22
|
-
"last": 0,
|
|
23
|
-
"older": 0,
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
matchHeight={true}
|
|
27
|
-
query={Object {}}
|
|
28
|
-
time="H24"
|
|
29
|
-
updateQuery={[Function]}
|
|
30
|
-
/>
|
|
31
|
-
</Col>
|
|
32
|
-
<Col
|
|
33
|
-
bsClass="col"
|
|
34
|
-
componentClass="div"
|
|
35
|
-
key="paused"
|
|
36
|
-
>
|
|
37
|
-
<PausedTasksCard
|
|
38
|
-
className=""
|
|
39
|
-
data={
|
|
40
|
-
Object {
|
|
41
|
-
"last": 0,
|
|
42
|
-
"older": 0,
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
matchHeight={true}
|
|
46
|
-
query={Object {}}
|
|
47
|
-
time="H24"
|
|
48
|
-
updateQuery={[Function]}
|
|
49
|
-
/>
|
|
50
|
-
</Col>
|
|
51
|
-
<Col
|
|
52
|
-
bsClass="col"
|
|
53
|
-
componentClass="div"
|
|
54
|
-
key="stopped"
|
|
55
|
-
>
|
|
56
|
-
<StoppedTasksCard
|
|
57
|
-
className=""
|
|
58
|
-
data={
|
|
59
|
-
Object {
|
|
60
|
-
"other": 0,
|
|
61
|
-
"results": Object {
|
|
62
|
-
"error": Object {
|
|
63
|
-
"last": 0,
|
|
64
|
-
"total": 0,
|
|
65
|
-
},
|
|
66
|
-
"success": Object {
|
|
67
|
-
"last": 0,
|
|
68
|
-
"total": 0,
|
|
69
|
-
},
|
|
70
|
-
"warning": Object {
|
|
71
|
-
"last": 0,
|
|
72
|
-
"total": 0,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
matchHeight={true}
|
|
78
|
-
query={Object {}}
|
|
79
|
-
time="H24"
|
|
80
|
-
updateQuery={[Function]}
|
|
81
|
-
/>
|
|
82
|
-
</Col>
|
|
83
|
-
<Col
|
|
84
|
-
bsClass="col"
|
|
85
|
-
componentClass="div"
|
|
86
|
-
key="scheduled"
|
|
87
|
-
>
|
|
88
|
-
<ScheduledTasksCard
|
|
89
|
-
className=""
|
|
90
|
-
data={0}
|
|
91
|
-
matchHeight={true}
|
|
92
|
-
query={Object {}}
|
|
93
|
-
time="H24"
|
|
94
|
-
updateQuery={[Function]}
|
|
95
|
-
/>
|
|
96
|
-
</Col>
|
|
97
|
-
</Row>
|
|
98
|
-
</CardGrid>
|
|
99
|
-
`;
|
|
100
|
-
|
|
101
|
-
exports[`TasksCardsGrid render with props 1`] = `
|
|
102
|
-
<CardGrid
|
|
103
|
-
className=""
|
|
104
|
-
fluid={true}
|
|
105
|
-
matchHeight={true}
|
|
106
|
-
>
|
|
107
|
-
<Row
|
|
108
|
-
bsClass="row"
|
|
109
|
-
componentClass="div"
|
|
110
|
-
>
|
|
111
|
-
<Col
|
|
112
|
-
bsClass="col"
|
|
113
|
-
componentClass="div"
|
|
114
|
-
key="running"
|
|
115
|
-
>
|
|
116
|
-
<RunningTasksCard
|
|
117
|
-
className=""
|
|
118
|
-
data={
|
|
119
|
-
Object {
|
|
120
|
-
"last": 3,
|
|
121
|
-
"older": 5,
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
matchHeight={true}
|
|
125
|
-
query={
|
|
126
|
-
Object {
|
|
127
|
-
"state": "running",
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
time="WEEK"
|
|
131
|
-
updateQuery={[MockFunction]}
|
|
132
|
-
/>
|
|
133
|
-
</Col>
|
|
134
|
-
<Col
|
|
135
|
-
bsClass="col"
|
|
136
|
-
componentClass="div"
|
|
137
|
-
key="paused"
|
|
138
|
-
>
|
|
139
|
-
<PausedTasksCard
|
|
140
|
-
className=""
|
|
141
|
-
data={
|
|
142
|
-
Object {
|
|
143
|
-
"last": 3,
|
|
144
|
-
"older": 5,
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
matchHeight={true}
|
|
148
|
-
query={
|
|
149
|
-
Object {
|
|
150
|
-
"state": "running",
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
time="WEEK"
|
|
154
|
-
updateQuery={[MockFunction]}
|
|
155
|
-
/>
|
|
156
|
-
</Col>
|
|
157
|
-
<Col
|
|
158
|
-
bsClass="col"
|
|
159
|
-
componentClass="div"
|
|
160
|
-
key="stopped"
|
|
161
|
-
>
|
|
162
|
-
<StoppedTasksCard
|
|
163
|
-
className=""
|
|
164
|
-
data={
|
|
165
|
-
Object {
|
|
166
|
-
"error": Object {
|
|
167
|
-
"last": 1,
|
|
168
|
-
"total": 8,
|
|
169
|
-
},
|
|
170
|
-
"success": Object {
|
|
171
|
-
"last": 3,
|
|
172
|
-
"total": 25,
|
|
173
|
-
},
|
|
174
|
-
"warning": Object {
|
|
175
|
-
"last": 2,
|
|
176
|
-
"total": 20,
|
|
177
|
-
},
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
matchHeight={true}
|
|
181
|
-
query={
|
|
182
|
-
Object {
|
|
183
|
-
"state": "running",
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
time="WEEK"
|
|
187
|
-
updateQuery={[MockFunction]}
|
|
188
|
-
/>
|
|
189
|
-
</Col>
|
|
190
|
-
<Col
|
|
191
|
-
bsClass="col"
|
|
192
|
-
componentClass="div"
|
|
193
|
-
key="scheduled"
|
|
194
|
-
>
|
|
195
|
-
<ScheduledTasksCard
|
|
196
|
-
className=""
|
|
197
|
-
data={1}
|
|
198
|
-
matchHeight={true}
|
|
199
|
-
query={
|
|
200
|
-
Object {
|
|
201
|
-
"state": "running",
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
time="WEEK"
|
|
205
|
-
updateQuery={[MockFunction]}
|
|
206
|
-
/>
|
|
207
|
-
</Col>
|
|
208
|
-
</Row>
|
|
209
|
-
</CardGrid>
|
|
210
|
-
`;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`TimeDropDown render with all props 1`] = `
|
|
4
|
-
<DropdownButton
|
|
5
|
-
className="some-class"
|
|
6
|
-
id="some-id"
|
|
7
|
-
title="week"
|
|
8
|
-
>
|
|
9
|
-
<MenuItem
|
|
10
|
-
active={false}
|
|
11
|
-
bsClass="dropdown"
|
|
12
|
-
disabled={false}
|
|
13
|
-
divider={false}
|
|
14
|
-
header={false}
|
|
15
|
-
key="H24"
|
|
16
|
-
onClick={[Function]}
|
|
17
|
-
>
|
|
18
|
-
24h
|
|
19
|
-
</MenuItem>
|
|
20
|
-
<MenuItem
|
|
21
|
-
active={false}
|
|
22
|
-
bsClass="dropdown"
|
|
23
|
-
disabled={false}
|
|
24
|
-
divider={false}
|
|
25
|
-
header={false}
|
|
26
|
-
key="H12"
|
|
27
|
-
onClick={[Function]}
|
|
28
|
-
>
|
|
29
|
-
12h
|
|
30
|
-
</MenuItem>
|
|
31
|
-
<MenuItem
|
|
32
|
-
active={true}
|
|
33
|
-
bsClass="dropdown"
|
|
34
|
-
disabled={false}
|
|
35
|
-
divider={false}
|
|
36
|
-
header={false}
|
|
37
|
-
key="WEEK"
|
|
38
|
-
onClick={[Function]}
|
|
39
|
-
>
|
|
40
|
-
week
|
|
41
|
-
</MenuItem>
|
|
42
|
-
</DropdownButton>
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
exports[`TimeDropDown render with minimal props 1`] = `
|
|
46
|
-
<DropdownButton
|
|
47
|
-
className=""
|
|
48
|
-
id="some-id"
|
|
49
|
-
title="24h"
|
|
50
|
-
>
|
|
51
|
-
<MenuItem
|
|
52
|
-
active={true}
|
|
53
|
-
bsClass="dropdown"
|
|
54
|
-
disabled={false}
|
|
55
|
-
divider={false}
|
|
56
|
-
header={false}
|
|
57
|
-
key="H24"
|
|
58
|
-
onClick={[Function]}
|
|
59
|
-
>
|
|
60
|
-
24h
|
|
61
|
-
</MenuItem>
|
|
62
|
-
<MenuItem
|
|
63
|
-
active={false}
|
|
64
|
-
bsClass="dropdown"
|
|
65
|
-
disabled={false}
|
|
66
|
-
divider={false}
|
|
67
|
-
header={false}
|
|
68
|
-
key="H12"
|
|
69
|
-
onClick={[Function]}
|
|
70
|
-
>
|
|
71
|
-
12h
|
|
72
|
-
</MenuItem>
|
|
73
|
-
<MenuItem
|
|
74
|
-
active={false}
|
|
75
|
-
bsClass="dropdown"
|
|
76
|
-
disabled={false}
|
|
77
|
-
divider={false}
|
|
78
|
-
header={false}
|
|
79
|
-
key="WEEK"
|
|
80
|
-
onClick={[Function]}
|
|
81
|
-
>
|
|
82
|
-
week
|
|
83
|
-
</MenuItem>
|
|
84
|
-
</DropdownButton>
|
|
85
|
-
`;
|