foreman-tasks 0.17.1 → 0.17.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/foreman_tasks/version.rb +1 -1
  3. data/webpack/ForemanTasks/Components/TaskDetails/TaskDetailsSelectors.js +3 -1
  4. data/webpack/ForemanTasks/Components/TaskDetails/__tests__/__snapshots__/TaskDetails.test.js.snap +2 -2
  5. data/webpack/ForemanTasks/Components/TaskDetails/index.js +1 -4
  6. data/webpack/ForemanTasks/Components/TasksDashboard/index.js +1 -4
  7. data/webpack/ForemanTasks/Components/TasksTable/Components/ActionConfirmation.js +49 -0
  8. data/webpack/ForemanTasks/Components/TasksTable/Components/ActionSelectButton.js +37 -0
  9. data/webpack/ForemanTasks/Components/TasksTable/Components/CancelResumeConfirm.js +51 -0
  10. data/webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionCell.js +32 -0
  11. data/webpack/ForemanTasks/Components/TasksTable/Components/TableSelectionHeaderCell.js +38 -0
  12. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/ActionConfirmation.test.js +18 -0
  13. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/ActionSelectButton.test.js +13 -0
  14. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/CancelResumeConfirm.test.js +28 -0
  15. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionCell.test.js +15 -0
  16. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/TableSelectionHeaderCell.test.js +15 -0
  17. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/ActionConfirmation.test.js.snap +89 -0
  18. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/ActionSelectButton.test.js.snap +32 -0
  19. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/CancelResumeConfirm.test.js.snap +37 -0
  20. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionCell.test.js.snap +14 -0
  21. data/webpack/ForemanTasks/Components/TasksTable/Components/__test__/__snapshots__/TableSelectionHeaderCell.test.js.snap +15 -0
  22. data/webpack/ForemanTasks/Components/TasksTable/TasksTable.js +29 -1
  23. data/webpack/ForemanTasks/Components/TasksTable/TasksTableActions.js +78 -3
  24. data/webpack/ForemanTasks/Components/TasksTable/TasksTableConstants.js +11 -0
  25. data/webpack/ForemanTasks/Components/TasksTable/TasksTablePage.js +47 -1
  26. data/webpack/ForemanTasks/Components/TasksTable/TasksTableReducer.js +30 -11
  27. data/webpack/ForemanTasks/Components/TasksTable/TasksTableSchema.js +23 -5
  28. data/webpack/ForemanTasks/Components/TasksTable/TasksTableSelectors.js +8 -0
  29. data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTable.fixtures.js +9 -1
  30. data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableActions.test.js +46 -1
  31. data/webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTableReducer.test.js +29 -1
  32. data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/SubTasksPage.test.js.snap +9 -5
  33. data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksIndexPage.test.js.snap +9 -5
  34. data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableActions.test.js.snap +77 -17
  35. data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTablePage.test.js.snap +46 -10
  36. data/webpack/ForemanTasks/Components/TasksTable/__tests__/__snapshots__/TasksTableReducer.test.js.snap +62 -7
  37. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionCellFormatter.test.js.snap +14 -0
  38. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/actionNameCellFormatter.test.js.snap +9 -0
  39. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/dateCellFormmatter.test.js.snap +9 -0
  40. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/durationCellFormmatter.test.js.snap +18 -0
  41. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionCellFormatter.test.js.snap +10 -0
  42. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/__snapshots__/selectionHeaderCellFormatter.test.js.snap +10 -0
  43. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionCellFormatter.test.js +11 -0
  44. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/actionNameCellFormatter.test.js +8 -0
  45. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/dateCellFormmatter.test.js +7 -0
  46. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/durationCellFormmatter.test.js +12 -0
  47. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionCellFormatter.test.js +12 -0
  48. data/webpack/ForemanTasks/Components/TasksTable/formatters/__test__/selectionHeaderCellFormatter.test.js +12 -0
  49. data/webpack/ForemanTasks/Components/TasksTable/formatters/actionCellFormatter.js +16 -0
  50. data/webpack/ForemanTasks/Components/TasksTable/formatters/actionNameCellFormatter.js +5 -0
  51. data/webpack/ForemanTasks/Components/TasksTable/formatters/dateCellFormmatter.js +7 -0
  52. data/webpack/ForemanTasks/Components/TasksTable/formatters/durationCellFormmatter.js +7 -0
  53. data/webpack/ForemanTasks/Components/TasksTable/formatters/index.js +7 -0
  54. data/webpack/ForemanTasks/Components/TasksTable/formatters/selectionCellFormatter.js +10 -0
  55. data/webpack/ForemanTasks/Components/TasksTable/formatters/selectionHeaderCellFormatter.js +10 -0
  56. data/webpack/ForemanTasks/Components/TasksTable/index.js +5 -4
  57. data/webpack/__mocks__/foremanReact/components/common/table.js +1 -0
  58. metadata +36 -3
  59. data/webpack/ForemanTasks/Components/TasksTable/TaskTableFormmatters.js +0 -53
@@ -1,6 +1,7 @@
1
1
  import { translate as __ } from 'foremanReact/common/I18n';
2
2
  import { selectForemanTasks } from '../../ForemanTasksSelectors';
3
3
  import { getDuration } from './TasksTableHelpers';
4
+ import { CLOSED } from './TasksTableConstants';
4
5
 
5
6
  export const selectTasksTable = state =>
6
7
  selectForemanTasks(state).tasksTable || {};
@@ -20,6 +21,12 @@ export const selectItemCount = state =>
20
21
  export const selectActionName = state =>
21
22
  selectTasksTableQuery(state).actionName || '';
22
23
 
24
+ export const selectSelectedRows = state =>
25
+ selectTasksTableQuery(state).selectedRows || [];
26
+
27
+ export const selectModalStatus = state =>
28
+ selectTasksTableQuery(state).modalStatus || CLOSED;
29
+
23
30
  export const selectResults = state => {
24
31
  const { results } = selectTasksTableContent(state);
25
32
  if (!results) return [];
@@ -28,6 +35,7 @@ export const selectResults = state => {
28
35
  username: result.username || '',
29
36
  state: result.state + (result.frozen ? ` ${__('Disabled')}` : ''),
30
37
  duration: getDuration(result.started_at, result.ended_at),
38
+ availableActions: result.available_actions,
31
39
  }));
32
40
  };
33
41
 
@@ -6,18 +6,26 @@ export const minProps = {
6
6
  itemCount: 2,
7
7
  cancelTask: jest.fn(),
8
8
  resumeTask: jest.fn(),
9
+ actionSelected: jest.fn(),
10
+ selectAllRows: jest.fn(),
11
+ unselectAllRows: jest.fn(),
12
+ selectRow: jest.fn(),
13
+ unselectRow: jest.fn(),
14
+ selectedRows: [],
9
15
  pagination: {
10
16
  page: 1,
11
17
  perPage: 10,
12
18
  },
13
19
  history: { location: { search: '' } },
14
- location: { pathname: '' },
15
20
  status: STATUS.RESOLVED,
16
21
  results: ['a', 'b'],
17
22
  sort: {
18
23
  by: 'q',
19
24
  order: 'w',
20
25
  },
26
+ showResumeSelcetedModal: jest.fn(),
27
+ showCancelSelcetedModal: jest.fn(),
28
+ hideSelcetedModal: jest.fn(),
21
29
  };
22
30
 
23
31
  export default {
@@ -1,12 +1,13 @@
1
1
  import { testActionSnapshotWithFixtures } from 'react-redux-test-utils';
2
2
  import API from 'foremanReact/API';
3
- import { TASKS_TABLE_ID } from '../TasksTableConstants';
3
+ import { TASKS_TABLE_ID, CANCEL, RESUME } from '../TasksTableConstants';
4
4
  import {
5
5
  getTableItems,
6
6
  cancelTask,
7
7
  cancelTaskRequest,
8
8
  resumeTask,
9
9
  resumeTaskRequest,
10
+ actionSelected,
10
11
  } from '../TasksTableActions';
11
12
 
12
13
  jest.mock('foremanReact/components/common/table', () => ({
@@ -39,6 +40,50 @@ const fixtures = {
39
40
  );
40
41
  return resumeTaskRequest('some-id', 'some-name', 'some-url');
41
42
  },
43
+ 'should actionSelected CANCEL not cancelleble': () => {
44
+ const selected = [
45
+ {
46
+ id: '',
47
+ name: '',
48
+ isResumeble: false,
49
+ isCancelleble: false,
50
+ },
51
+ ];
52
+ return actionSelected(CANCEL, selected, 'some-url');
53
+ },
54
+ 'should actionSelected CANCEL cancelleble': () => {
55
+ const selected = [
56
+ {
57
+ id: '',
58
+ name: '',
59
+ isResumeble: false,
60
+ isCancelleble: true,
61
+ },
62
+ ];
63
+ return actionSelected(CANCEL, selected, 'some-url');
64
+ },
65
+ 'should actionSelected RESUME not resumable': () => {
66
+ const selected = [
67
+ {
68
+ id: '',
69
+ name: '',
70
+ isResumeble: false,
71
+ isCancelleble: false,
72
+ },
73
+ ];
74
+ return actionSelected(RESUME, selected, 'some-url');
75
+ },
76
+ 'should actionSelected RESUME resumable': () => {
77
+ const selected = [
78
+ {
79
+ id: '',
80
+ name: '',
81
+ isResumeble: true,
82
+ isCancelleble: false,
83
+ },
84
+ ];
85
+ return actionSelected(RESUME, selected, 'some-url');
86
+ },
42
87
  };
43
88
  describe('TasksTable actions', () => {
44
89
  it('getTableItems should reuse common/table/getTableItemsAction', () => {
@@ -3,6 +3,11 @@ import {
3
3
  TASKS_TABLE_ID,
4
4
  TASKS_TABLE_SET_SORT,
5
5
  TASKS_TABLE_SET_PAGINATION,
6
+ SELECT_ROWS,
7
+ UNSELECT_ROWS,
8
+ UNSELECT_ALL_ROWS,
9
+ TASKS_TABLE_SELECTED_MODAL,
10
+ RESUME,
6
11
  } from '../TasksTableConstants';
7
12
  import reducer from '../TasksTableReducer';
8
13
 
@@ -31,7 +36,30 @@ const fixtures = {
31
36
  payload: { page: 4, perPage: 7 },
32
37
  },
33
38
  },
39
+ 'should handle SELECT_ROWS': {
40
+ action: {
41
+ type: SELECT_ROWS,
42
+ payload: [1, 2, 3, 4, 5, 6, 7],
43
+ },
44
+ },
45
+ 'should handle UNSELECT_ROWS': {
46
+ action: {
47
+ type: UNSELECT_ROWS,
48
+ payload: 4,
49
+ },
50
+ },
51
+ 'should handle UNSELECT_ALL_ROWS': {
52
+ action: {
53
+ type: UNSELECT_ALL_ROWS,
54
+ },
55
+ },
56
+ 'should handle TASKS_TABLE_SELECTED_MODAL': {
57
+ action: {
58
+ type: TASKS_TABLE_SELECTED_MODAL,
59
+ payload: RESUME,
60
+ },
61
+ },
34
62
  };
35
63
 
36
- describe('TasksTablePaginationReducer reducer', () =>
64
+ describe('TasksTableReducer reducer', () =>
37
65
  testReducerSnapshotWithFixtures(reducer, fixtures));
@@ -2,9 +2,11 @@
2
2
 
3
3
  exports[`SubTasksPage rendering render with minimal props 1`] = `
4
4
  <Connect(TasksTablePage)
5
+ actionSelected={[MockFunction]}
5
6
  cancelTask={[MockFunction]}
6
7
  getBreadcrumbs={[MockFunction]}
7
8
  getTableItems={[MockFunction]}
9
+ hideSelcetedModal={[MockFunction]}
8
10
  history={
9
11
  Object {
10
12
  "location": Object {
@@ -13,11 +15,6 @@ exports[`SubTasksPage rendering render with minimal props 1`] = `
13
15
  }
14
16
  }
15
17
  itemCount={2}
16
- location={
17
- Object {
18
- "pathname": "",
19
- }
20
- }
21
18
  match={
22
19
  Object {
23
20
  "params": Object {
@@ -38,6 +35,11 @@ exports[`SubTasksPage rendering render with minimal props 1`] = `
38
35
  ]
39
36
  }
40
37
  resumeTask={[MockFunction]}
38
+ selectAllRows={[MockFunction]}
39
+ selectRow={[MockFunction]}
40
+ selectedRows={Array []}
41
+ showCancelSelcetedModal={[MockFunction]}
42
+ showResumeSelcetedModal={[MockFunction]}
41
43
  sort={
42
44
  Object {
43
45
  "by": "q",
@@ -45,5 +47,7 @@ exports[`SubTasksPage rendering render with minimal props 1`] = `
45
47
  }
46
48
  }
47
49
  status="RESOLVED"
50
+ unselectAllRows={[MockFunction]}
51
+ unselectRow={[MockFunction]}
48
52
  />
49
53
  `;
@@ -2,9 +2,11 @@
2
2
 
3
3
  exports[`TasksIndexPage rendering render with minimal props 1`] = `
4
4
  <Connect(TasksTablePage)
5
+ actionSelected={[MockFunction]}
5
6
  cancelTask={[MockFunction]}
6
7
  getBreadcrumbs={[MockFunction]}
7
8
  getTableItems={[MockFunction]}
9
+ hideSelcetedModal={[MockFunction]}
8
10
  history={
9
11
  Object {
10
12
  "location": Object {
@@ -13,11 +15,6 @@ exports[`TasksIndexPage rendering render with minimal props 1`] = `
13
15
  }
14
16
  }
15
17
  itemCount={2}
16
- location={
17
- Object {
18
- "pathname": "",
19
- }
20
- }
21
18
  pagination={
22
19
  Object {
23
20
  "page": 1,
@@ -31,6 +28,11 @@ exports[`TasksIndexPage rendering render with minimal props 1`] = `
31
28
  ]
32
29
  }
33
30
  resumeTask={[MockFunction]}
31
+ selectAllRows={[MockFunction]}
32
+ selectRow={[MockFunction]}
33
+ selectedRows={Array []}
34
+ showCancelSelcetedModal={[MockFunction]}
35
+ showResumeSelcetedModal={[MockFunction]}
34
36
  sort={
35
37
  Object {
36
38
  "by": "q",
@@ -38,5 +40,7 @@ exports[`TasksIndexPage rendering render with minimal props 1`] = `
38
40
  }
39
41
  }
40
42
  status="RESOLVED"
43
+ unselectAllRows={[MockFunction]}
44
+ unselectRow={[MockFunction]}
41
45
  />
42
46
  `;
@@ -1,5 +1,79 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`TasksTable actions should actionSelected CANCEL cancelleble 1`] = `
4
+ Array [
5
+ Array [
6
+ [Function],
7
+ ],
8
+ Array [
9
+ "TASKS_TABLE",
10
+ ],
11
+ Array [
12
+ [Function],
13
+ ],
14
+ ]
15
+ `;
16
+
17
+ exports[`TasksTable actions should actionSelected CANCEL not cancelleble 1`] = `
18
+ Array [
19
+ Array [
20
+ Object {
21
+ "payload": Object {
22
+ "message": Object {
23
+ "message": "Not all the selected tasks can be canceled",
24
+ "type": "warning",
25
+ },
26
+ },
27
+ "type": "TOASTS_ADD",
28
+ },
29
+ ],
30
+ ]
31
+ `;
32
+
33
+ exports[`TasksTable actions should actionSelected RESUME not resumable 1`] = `
34
+ Array [
35
+ Array [
36
+ Object {
37
+ "payload": Object {
38
+ "message": Object {
39
+ "message": "Not all the selected tasks can be resumed",
40
+ "type": "warning",
41
+ },
42
+ },
43
+ "type": "TOASTS_ADD",
44
+ },
45
+ ],
46
+ ]
47
+ `;
48
+
49
+ exports[`TasksTable actions should actionSelected RESUME resumable 1`] = `
50
+ Array [
51
+ Array [
52
+ [Function],
53
+ ],
54
+ Array [
55
+ "TASKS_TABLE",
56
+ ],
57
+ Array [
58
+ [Function],
59
+ ],
60
+ ]
61
+ `;
62
+
63
+ exports[`TasksTable actions should cancelTask 1`] = `
64
+ Array [
65
+ Array [
66
+ [Function],
67
+ ],
68
+ Array [
69
+ "TASKS_TABLE",
70
+ ],
71
+ Array [
72
+ [Function],
73
+ ],
74
+ ]
75
+ `;
76
+
3
77
  exports[`TasksTable actions should cancelTaskRequest and fail 1`] = `
4
78
  Array [
5
79
  Array [
@@ -17,7 +91,7 @@ Array [
17
91
  Object {
18
92
  "payload": Object {
19
93
  "message": Object {
20
- "message": "\\"some-name\\" task cannot be cancelled at the moment.",
94
+ "message": "\\"some-name\\" Task cannot be cancelled at the moment.",
21
95
  "type": "error",
22
96
  },
23
97
  },
@@ -44,7 +118,7 @@ Array [
44
118
  Object {
45
119
  "payload": Object {
46
120
  "message": Object {
47
- "message": "\\"some-name\\" task cancelled",
121
+ "message": "\\"some-name\\" Task cancelled",
48
122
  "type": "success",
49
123
  },
50
124
  },
@@ -54,7 +128,7 @@ Array [
54
128
  ]
55
129
  `;
56
130
 
57
- exports[`TasksTable actions should cancelTask 1`] = `
131
+ exports[`TasksTable actions should resumeTask 1`] = `
58
132
  Array [
59
133
  Array [
60
134
  [Function],
@@ -99,17 +173,3 @@ Array [
99
173
  ],
100
174
  ]
101
175
  `;
102
-
103
- exports[`TasksTable actions should resumeTask 1`] = `
104
- Array [
105
- Array [
106
- [Function],
107
- ],
108
- Array [
109
- "TASKS_TABLE",
110
- ],
111
- Array [
112
- [Function],
113
- ],
114
- ]
115
- `;
@@ -4,6 +4,13 @@ exports[`TasksTablePage rendering render with Breadcrubs 1`] = `
4
4
  <div
5
5
  className="tasks-table-wrapper"
6
6
  >
7
+ <CancelResumeConfirm
8
+ action={[Function]}
9
+ closeModal={[MockFunction]}
10
+ modalStatus="CLOSED"
11
+ selected={Array []}
12
+ selectedRowsLen={0}
13
+ />
7
14
  <PageLayout
8
15
  beforeToolbarComponent={
9
16
  <Connect(TasksDashboard)
@@ -56,16 +63,24 @@ exports[`TasksTablePage rendering render with Breadcrubs 1`] = `
56
63
  toolbarButtons={
57
64
  <React.Fragment>
58
65
  <ExportButton
66
+ title="Export All"
59
67
  url="/foreman_tasks/tasks.csv?include_permissions=true"
60
68
  />
69
+ <ActionSelectButton
70
+ disabled={true}
71
+ onCancel={[MockFunction]}
72
+ onResume={[MockFunction]}
73
+ />
61
74
  </React.Fragment>
62
75
  }
63
76
  >
64
77
  <TasksTable
65
78
  actionName=""
79
+ actionSelected={[MockFunction]}
66
80
  cancelTask={[MockFunction]}
67
81
  error={null}
68
82
  getTableItems={[MockFunction]}
83
+ hideSelcetedModal={[MockFunction]}
69
84
  history={
70
85
  Object {
71
86
  "location": Object {
@@ -75,11 +90,7 @@ exports[`TasksTablePage rendering render with Breadcrubs 1`] = `
75
90
  }
76
91
  isSubTask={false}
77
92
  itemCount={2}
78
- location={
79
- Object {
80
- "pathname": "",
81
- }
82
- }
93
+ modalStatus="CLOSED"
83
94
  pagination={
84
95
  Object {
85
96
  "page": 1,
@@ -93,6 +104,11 @@ exports[`TasksTablePage rendering render with Breadcrubs 1`] = `
93
104
  ]
94
105
  }
95
106
  resumeTask={[MockFunction]}
107
+ selectAllRows={[MockFunction]}
108
+ selectRow={[MockFunction]}
109
+ selectedRows={Array []}
110
+ showCancelSelcetedModal={[MockFunction]}
111
+ showResumeSelcetedModal={[MockFunction]}
96
112
  sort={
97
113
  Object {
98
114
  "by": "q",
@@ -100,6 +116,8 @@ exports[`TasksTablePage rendering render with Breadcrubs 1`] = `
100
116
  }
101
117
  }
102
118
  status="RESOLVED"
119
+ unselectAllRows={[MockFunction]}
120
+ unselectRow={[MockFunction]}
103
121
  />
104
122
  </PageLayout>
105
123
  </div>
@@ -109,6 +127,13 @@ exports[`TasksTablePage rendering render with minimal props 1`] = `
109
127
  <div
110
128
  className="tasks-table-wrapper"
111
129
  >
130
+ <CancelResumeConfirm
131
+ action={[Function]}
132
+ closeModal={[MockFunction]}
133
+ modalStatus="CLOSED"
134
+ selected={Array []}
135
+ selectedRowsLen={0}
136
+ />
112
137
  <PageLayout
113
138
  beforeToolbarComponent={
114
139
  <Connect(TasksDashboard)
@@ -144,16 +169,24 @@ exports[`TasksTablePage rendering render with minimal props 1`] = `
144
169
  toolbarButtons={
145
170
  <React.Fragment>
146
171
  <ExportButton
172
+ title="Export All"
147
173
  url="/foreman_tasks/tasks.csv?include_permissions=true"
148
174
  />
175
+ <ActionSelectButton
176
+ disabled={true}
177
+ onCancel={[MockFunction]}
178
+ onResume={[MockFunction]}
179
+ />
149
180
  </React.Fragment>
150
181
  }
151
182
  >
152
183
  <TasksTable
153
184
  actionName=""
185
+ actionSelected={[MockFunction]}
154
186
  cancelTask={[MockFunction]}
155
187
  error={null}
156
188
  getTableItems={[MockFunction]}
189
+ hideSelcetedModal={[MockFunction]}
157
190
  history={
158
191
  Object {
159
192
  "location": Object {
@@ -163,11 +196,7 @@ exports[`TasksTablePage rendering render with minimal props 1`] = `
163
196
  }
164
197
  isSubTask={false}
165
198
  itemCount={2}
166
- location={
167
- Object {
168
- "pathname": "",
169
- }
170
- }
199
+ modalStatus="CLOSED"
171
200
  pagination={
172
201
  Object {
173
202
  "page": 1,
@@ -181,6 +210,11 @@ exports[`TasksTablePage rendering render with minimal props 1`] = `
181
210
  ]
182
211
  }
183
212
  resumeTask={[MockFunction]}
213
+ selectAllRows={[MockFunction]}
214
+ selectRow={[MockFunction]}
215
+ selectedRows={Array []}
216
+ showCancelSelcetedModal={[MockFunction]}
217
+ showResumeSelcetedModal={[MockFunction]}
184
218
  sort={
185
219
  Object {
186
220
  "by": "q",
@@ -188,6 +222,8 @@ exports[`TasksTablePage rendering render with minimal props 1`] = `
188
222
  }
189
223
  }
190
224
  status="RESOLVED"
225
+ unselectAllRows={[MockFunction]}
226
+ unselectRow={[MockFunction]}
191
227
  />
192
228
  </PageLayout>
193
229
  </div>