@c8y/ng1-modules 1017.0.453 → 1017.0.456

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.
@@ -23,6 +23,7 @@
23
23
  <button
24
24
  title="{{ labels.ok || defaultLabels.ok | translate }}"
25
25
  class="btn btn-primary"
26
+ data-cy="modal-confirm-btn"
26
27
  ng-click="checkboxes.length > 0 ? close(vals) : close(1)"
27
28
  >
28
29
  {{ labels.ok || defaultLabels.ok | translate }}
@@ -11,6 +11,7 @@
11
11
  <button
12
12
  title="{{ 'Request log file' | translate }}"
13
13
  class="dropdown-toggle c8y-dropdown"
14
+ data-cy="logViewer--request-log-file"
14
15
  uib-dropdown-toggle
15
16
  aria-haspopup="true"
16
17
  >
@@ -18,7 +19,7 @@
18
19
  <span translate>Request log file</span>
19
20
  <span c8y-icon="caret-down"></span>
20
21
  </button>
21
- <ul class="dropdown-menu dropdown-menu-right dropdown-menu-action-bar" uib-dropdown-menu>
22
+ <ul class="dropdown-menu dropdown-menu-right dropdown-menu-action-bar" data-cy="logViewer--dropdown-menu-action-bar" uib-dropdown-menu>
22
23
  <li class="dropdown-form">
23
24
  <form name="logRequestForm" class="form">
24
25
  <div class="form-group c8y-datetime-picker" data-cy="fromDatePicker">
@@ -43,7 +44,7 @@
43
44
 
44
45
  <div class="form-group">
45
46
  <label translate>Type of log</label>
46
- <ui-select ng-init="vm.logtypeSelect = $select" ng-model="vm.filters.logFile" required>
47
+ <ui-select ng-init="vm.logtypeSelect = $select" data-cy="logViewer--filters-log-type" ng-model="vm.filters.logFile" required>
47
48
  <ui-select-match
48
49
  title="{{ $select.selected.name }}"
49
50
  placeholder="{{ 'Type of log' | translate }}"
@@ -64,6 +65,7 @@
64
65
  class="form-control"
65
66
  placeholder="{{ 'Filter by text' | translate }}"
66
67
  ng-model="vm.filters.searchText"
68
+ data-cy="logViewer--search-text"
67
69
  ng-trim="false"
68
70
  />
69
71
  </div>
@@ -73,13 +75,15 @@
73
75
  <input
74
76
  type="number"
75
77
  class="form-control"
76
- ng-model="vm.filters.maximumLines"
78
+ ng-model="vm.filters.maximumLines"
79
+ data-cy="logViewer--maximum-lines"
77
80
  placeholder="{{ 'e.g.' | translate }} 10"
78
81
  required
79
82
  />
80
83
  </div>
81
84
  <button
82
- title="{{ 'Request log file' | translate }}"
85
+ title="{{ 'Request log file' | translate }}"
86
+ data-cy="logViewer--request-log-file-button"
83
87
  class="btn btn-primary btn-block"
84
88
  ng-disabled="logRequestForm.$invalid"
85
89
  ng-click="requestLogfile(vm.filters); isOpen = !isOpen"
@@ -172,6 +176,7 @@
172
176
  aria-label="{{ 'Cancel operation' | translate }}"
173
177
  tooltip-popup-delay="500"
174
178
  popover-trigger="'mouseenter focus'"
179
+ data-cy="logViewer--cancel-operation"
175
180
  tooltip-placement="left"
176
181
  ng-click="cancel(op)"
177
182
  >
@@ -196,6 +201,7 @@
196
201
  type="button"
197
202
  class="collapse-btn"
198
203
  ng-class="{ active: op === selectedLog }"
204
+ data-cy="logViewer--Expand-button"
199
205
  ng-click="op===selectedLog ? selectLogfile({}) :selectLogfile(op);"
200
206
  >
201
207
  <i c8y-icon="chevron-down"></i>
@@ -215,15 +221,15 @@
215
221
  >
216
222
  <i c8y-icon="ellipsis-v"></i>
217
223
  </button>
218
- <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
224
+ <ul class="dropdown-menu dropdown-menu-right" data-cy="index--dropdown-menu-right" uib-dropdown-menu>
219
225
  <li>
220
- <a title="{{ 'Delete log' | translate }}" href ng-click="remove(op)">
226
+ <a title="{{ 'Delete log' | translate }}" data-cy="index--Delete-log-button" href ng-click="remove(op)">
221
227
  <i c8y-icon="delete"></i>
222
228
  {{ 'Delete' | translate }}
223
229
  </a>
224
230
  </li>
225
231
  <li ng-show="isBinary(op)">
226
- <a title="{{ 'Download log' | translate }}" href ng-click="download(op)">
232
+ <a title="{{ 'Download log' | translate }}" data-cy="index--Download-log-button" href ng-click="download(op)">
227
233
  <i c8y-icon="download"></i>
228
234
  {{ 'Download' | translate }}
229
235
  </a>
@@ -258,9 +264,10 @@
258
264
  <dl
259
265
  class="dl-inline small text-muted m-b-0"
260
266
  ng-show="selectedLog.c8y_LogfileRequest.dateTo"
267
+ data-cy="logViewer--LogfileRequest.dateTo"
261
268
  >
262
269
  <dt translate>Date to</dt>
263
- <dd ng-bind="selectedLog.c8y_LogfileRequest.dateTo | absoluteDate"></dd>
270
+ <dd ng-bind="selectedLog.c8y_LogfileRequest.dateTo | absoluteDate" data-cy="logViewer--LogfileRequest.dateFrom"></dd>
264
271
  </dl>
265
272
 
266
273
  <dl
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1017.0.453",
3
+ "version": "1017.0.456",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",