@c8y/ng1-modules 1018.113.0 → 1018.115.0

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.
@@ -24,6 +24,7 @@
24
24
  title="{{ labels.ok || defaultLabels.ok | translate }}"
25
25
  class="btn btn-primary"
26
26
  ng-click="checkboxes.length > 0 ? close(vals) : close(1)"
27
+ data-cy="modal-confirm-btn"
27
28
  >
28
29
  {{ labels.ok || defaultLabels.ok | translate }}
29
30
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1018.113.0",
3
+ "version": "1018.115.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -82,6 +82,7 @@
82
82
  type="button"
83
83
  class="btn btn-primary"
84
84
  ng-click="$ctrl.importSelectedTemplate()"
85
+ data-cy="importTemplate-modal--import-btn"
85
86
  ng-disabled="!($ctrl.selection.template && importForm.$valid)"
86
87
  translate
87
88
  >
@@ -21,6 +21,7 @@
21
21
  </label>
22
22
  <input
23
23
  id="msgId"
24
+ data-cy="requestEditor--input-msgId"
24
25
  name="msgId"
25
26
  type="text"
26
27
  class="form-control"
@@ -55,6 +56,7 @@
55
56
  </label>
56
57
  <input
57
58
  id="name"
59
+ data-cy="requestEditor--input-name"
58
60
  name="name"
59
61
  type="text"
60
62
  class="form-control"
@@ -76,6 +78,7 @@
76
78
  aria-labelledby="target"
77
79
  class="form-control"
78
80
  ng-model="vm.requestTemplate.api"
81
+ data-cy="requestEditor--rest-api-options"
79
82
  ng-options="api.value as (api.name | translate) for api in vm.apis | orderBy:'name'"
80
83
  ng-change="vm.setupRequestTemplateDefaults(vm.requestTemplate)"
81
84
  required
@@ -97,6 +100,7 @@
97
100
  aria-labelledby="method"
98
101
  class="form-control"
99
102
  ng-model="vm.requestTemplate.method"
103
+ data-cy="requestEditor--method-options"
100
104
  ng-options="method.value as (method.name | translate) for method in vm.getMethodsForAPI(vm.requestTemplate.api)"
101
105
  ng-change="vm.setupRequestTemplateDefaults(vm.requestTemplate)"
102
106
  required
@@ -171,7 +175,10 @@
171
175
  </div>
172
176
  </div>
173
177
  <div class="tight-grid">
174
- <ng-form name="externalIdTypeForm" ng-if="vm.shouldShowExternalId() || !vm.requestTemplate.byId">
178
+ <ng-form
179
+ name="externalIdTypeForm"
180
+ ng-if="vm.shouldShowExternalId() || !vm.requestTemplate.byId"
181
+ >
175
182
  <div class="form-group col-md-6">
176
183
  <label translate>External ID type</label>
177
184
  <input
@@ -351,6 +358,7 @@
351
358
  title="{{ 'Remove' | translate }}"
352
359
  ng-if="vm.originalMsgId"
353
360
  ng-click="vm.remove()"
361
+ data-cy="requestEditor--remove-msg-btn"
354
362
  >
355
363
  {{ 'Remove' | translate }}
356
364
  </button>
@@ -121,6 +121,7 @@
121
121
  <button
122
122
  class="dropdown-toggle c8y-dropdown"
123
123
  title="{{ 'Actions' | translate }}"
124
+ data-cy="list--smart-rest-actions"
124
125
  uib-dropdown-toggle
125
126
  aria-haspopup="true"
126
127
  >
@@ -130,19 +131,31 @@
130
131
  </button>
131
132
  <ul class="dropdown-menu dropdown-menu-right" uib-dropdown-menu>
132
133
  <li>
133
- <button title="{{ 'Edit' | translate }}" ng-click="$ctrl.detail(template)">
134
+ <button
135
+ title="{{ 'Edit' | translate }}"
136
+ ng-click="$ctrl.detail(template)"
137
+ data-cy="list--edit-btn"
138
+ >
134
139
  <i c8y-icon="pencil"></i>
135
140
  {{ 'Edit' | translate }}
136
141
  </button>
137
142
  </li>
138
143
  <li>
139
- <button title="{{ 'Export' | translate }}" ng-click="$ctrl.download(template)">
144
+ <button
145
+ title="{{ 'Export' | translate }}"
146
+ ng-click="$ctrl.download(template)"
147
+ data-cy="list--export-btn"
148
+ >
140
149
  <i c8y-icon="export"></i>
141
150
  {{ 'Export' | translate }}
142
151
  </button>
143
152
  </li>
144
153
  <li>
145
- <button title="{{ 'Delete' | translate }}" ng-click="$ctrl.remove(template)">
154
+ <button
155
+ title="{{ 'Delete' | translate }}"
156
+ ng-click="$ctrl.remove(template)"
157
+ data-cy="list--delete-btn"
158
+ >
146
159
  <i c8y-icon="delete"></i>
147
160
  {{ 'Delete' | translate }}
148
161
  </button>
@@ -163,7 +176,11 @@
163
176
  <div class="card-block card-column-30 m-r-0">
164
177
  <div class="text-truncate max-width-100">
165
178
  <span class="text-label-small" translate>ID</span>
166
- <span title="{{ template.__externalId }}" ng-bind="template.__externalId"></span>
179
+ <span
180
+ title="{{ template.__externalId }}"
181
+ ng-bind="template.__externalId"
182
+ data-cy="list--externalID"
183
+ ></span>
167
184
  </div>
168
185
  </div>
169
186
  <div class="card-footer separator card-column-30">
@@ -180,6 +197,7 @@
180
197
  <span
181
198
  class="badge badge-info"
182
199
  ng-bind="$ctrl.countRequestTemplates(template)"
200
+ data-cy="list--count-request-templates"
183
201
  ></span>
184
202
  </div>
185
203
  </div>
@@ -195,6 +213,7 @@
195
213
  <span
196
214
  class="badge badge-info"
197
215
  ng-bind="$ctrl.countResponseTemplates(template)"
216
+ data-cy="list--count-response-templates"
198
217
  ></span>
199
218
  </div>
200
219
  </div>
@@ -21,6 +21,7 @@
21
21
  name="name"
22
22
  id="tName"
23
23
  ng-model="$ctrl.template.name"
24
+ data-cy="request--template-name"
24
25
  ng-style="{ width: $ctrl.template.name.length + 2 + 'ch' }"
25
26
  title="{{ $ctrl.template.name }}"
26
27
  placeholder="{{ 'e.g. My template' | translate }}"