@sapui5/sap.fe.test 1.102.2 → 1.104.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.
Files changed (65) hide show
  1. package/package.json +3 -4
  2. package/src/sap/fe/test/.library +1 -1
  3. package/src/sap/fe/test/BaseActions.js +103 -97
  4. package/src/sap/fe/test/BaseArrangements.js +4 -15
  5. package/src/sap/fe/test/BaseAssertions.js +39 -46
  6. package/src/sap/fe/test/CollaborationClient.js +5 -5
  7. package/src/sap/fe/test/CollaborationClient.ts +5 -5
  8. package/src/sap/fe/test/FeMocks.js +1 -1
  9. package/src/sap/fe/test/FeMocks.ts +4 -3
  10. package/src/sap/fe/test/Flexibility.js +115 -162
  11. package/src/sap/fe/test/JestTemplatingHelper.js +99 -7
  12. package/src/sap/fe/test/JestTemplatingHelper.ts +91 -14
  13. package/src/sap/fe/test/JourneyRunner.js +31 -37
  14. package/src/sap/fe/test/ListReport.js +9 -13
  15. package/src/sap/fe/test/ObjectPage.js +35 -33
  16. package/src/sap/fe/test/Shell.js +0 -6
  17. package/src/sap/fe/test/TemplatePage.js +0 -2
  18. package/src/sap/fe/test/TemplatingTestUtils.js +20 -20
  19. package/src/sap/fe/test/UI5MockHelper.js +16 -10
  20. package/src/sap/fe/test/UI5MockHelper.ts +28 -18
  21. package/src/sap/fe/test/Utils.js +19 -20
  22. package/src/sap/fe/test/api/BaseAPI.js +11 -26
  23. package/src/sap/fe/test/api/ChartActions.js +116 -119
  24. package/src/sap/fe/test/api/ChartAssertions.js +18 -22
  25. package/src/sap/fe/test/api/CollaborationAPI.js +6 -6
  26. package/src/sap/fe/test/api/CollaborationAPI.ts +9 -11
  27. package/src/sap/fe/test/api/DialogAPI.js +11 -13
  28. package/src/sap/fe/test/api/DialogActions.js +8 -8
  29. package/src/sap/fe/test/api/DialogAssertions.js +9 -10
  30. package/src/sap/fe/test/api/DialogHelper.js +63 -0
  31. package/src/sap/fe/test/api/DialogMessageActions.js +2 -1
  32. package/src/sap/fe/test/api/DialogValueHelpActions.js +17 -39
  33. package/src/sap/fe/test/api/DialogValueHelpAssertions.js +47 -19
  34. package/src/sap/fe/test/api/FilterBarAPI.js +11 -12
  35. package/src/sap/fe/test/api/FilterBarActions.js +26 -40
  36. package/src/sap/fe/test/api/FilterBarAssertions.js +28 -47
  37. package/src/sap/fe/test/api/FooterActionsBase.js +3 -4
  38. package/src/sap/fe/test/api/FooterActionsOP.js +6 -10
  39. package/src/sap/fe/test/api/FooterAssertionsBase.js +5 -10
  40. package/src/sap/fe/test/api/FooterAssertionsOP.js +8 -13
  41. package/src/sap/fe/test/api/FormAPI.js +5 -6
  42. package/src/sap/fe/test/api/FormActions.js +11 -21
  43. package/src/sap/fe/test/api/FormAssertions.js +14 -20
  44. package/src/sap/fe/test/api/HeaderAPI.js +12 -27
  45. package/src/sap/fe/test/api/HeaderActions.js +10 -12
  46. package/src/sap/fe/test/api/HeaderActionsLR.js +76 -82
  47. package/src/sap/fe/test/api/HeaderAssertions.js +2 -20
  48. package/src/sap/fe/test/api/HeaderAssertionsLR.js +5 -8
  49. package/src/sap/fe/test/api/HeaderLR.js +7 -19
  50. package/src/sap/fe/test/api/KPICardAssertions.js +18 -37
  51. package/src/sap/fe/test/api/TableAPI.js +3 -13
  52. package/src/sap/fe/test/api/TableActions.js +2 -34
  53. package/src/sap/fe/test/api/TableAssertions.js +1 -24
  54. package/src/sap/fe/test/builder/FEBuilder.js +71 -75
  55. package/src/sap/fe/test/builder/MacroFieldBuilder.js +4 -3
  56. package/src/sap/fe/test/builder/MdcFieldBuilder.js +33 -29
  57. package/src/sap/fe/test/builder/MdcFilterBarBuilder.js +102 -104
  58. package/src/sap/fe/test/builder/MdcFilterFieldBuilder.js +9 -7
  59. package/src/sap/fe/test/builder/MdcTableBuilder.js +8 -4
  60. package/src/sap/fe/test/builder/VMBuilder.js +39 -55
  61. package/src/sap/fe/test/internal/ConsoleErrorChecker.js +241 -0
  62. package/src/sap/fe/test/internal/ConsoleErrorChecker.ts +206 -0
  63. package/src/sap/fe/test/internal/FEArrangements.js +28 -8
  64. package/src/sap/fe/test/library.js +3 -2
  65. package/src/sap/fe/test/library.ts +1 -0
@@ -13,7 +13,7 @@ sap.ui.define(
13
13
  "sap/fe/test/builder/MdcFilterBarBuilder",
14
14
  "sap/fe/test/builder/MdcFilterFieldBuilder"
15
15
  ],
16
- function(BaseAPI, Utils, OpaBuilder, Action, FEBuilder, FilterBarBuilder, FilterFieldBuilder) {
16
+ function (BaseAPI, Utils, OpaBuilder, Action, FEBuilder, FilterBarBuilder, FilterFieldBuilder) {
17
17
  "use strict";
18
18
 
19
19
  /**
@@ -21,7 +21,6 @@ sap.ui.define(
21
21
  *
22
22
  * @typedef {object} FilterFieldIdentifier
23
23
  * @property {string} property The name of the property
24
- *
25
24
  * @name sap.fe.test.api.FilterFieldIdentifier
26
25
  * @public
27
26
  */
@@ -37,7 +36,7 @@ sap.ui.define(
37
36
  * @hideconstructor
38
37
  * @public
39
38
  */
40
- var FilterBarAPI = function(oFilterBarBuilder, vFilterBarDescription) {
39
+ var FilterBarAPI = function (oFilterBarBuilder, vFilterBarDescription) {
41
40
  if (!Utils.isOfType(oFilterBarBuilder, FilterBarBuilder)) {
42
41
  throw new Error("oFilterBarBuilder parameter must be a FilterBarBuilder instance");
43
42
  }
@@ -48,13 +47,14 @@ sap.ui.define(
48
47
 
49
48
  /**
50
49
  * Retrieve a filter field by its identifier.
50
+ *
51
51
  * @param {sap.fe.test.builder.FilterBarBuilder} oFilterBarBuilder The builder of the filter bar to which the field belongs
52
52
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} vFieldIdentifier The identifier of the field in the filter bar
53
- * @param mState
53
+ * @param {any} mState
54
54
  * @returns {sap.fe.test.builder.FilterFieldBuilder} The FieldBuilder instance
55
55
  * @ui5-restricted
56
56
  */
57
- FilterBarAPI.createFilterFieldBuilder = function(oFilterBarBuilder, vFieldIdentifier, mState) {
57
+ FilterBarAPI.createFilterFieldBuilder = function (oFilterBarBuilder, vFieldIdentifier, mState) {
58
58
  var vFieldMatcher;
59
59
 
60
60
  if (Utils.isOfType(vFieldIdentifier, String)) {
@@ -75,7 +75,7 @@ sap.ui.define(
75
75
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
76
76
  * @public
77
77
  */
78
- FilterBarAPI.prototype.iOpenFilterAdaptation = function() {
78
+ FilterBarAPI.prototype.iOpenFilterAdaptation = function () {
79
79
  var oFilterBarBuilder = this.getBuilder();
80
80
  return this.prepareResult(
81
81
  oFilterBarBuilder
@@ -95,7 +95,7 @@ sap.ui.define(
95
95
  .hasType("sap.m.Panel")
96
96
  .isDialogElement()
97
97
  // ...and ensure that all filter fields are visible by expanding all filter groups (panels) if not yet done
98
- .doConditional(function(oPanel) {
98
+ .doConditional(function (oPanel) {
99
99
  return !oPanel.getExpanded();
100
100
  }, OpaBuilder.Actions.press("expandButton"))
101
101
  )
@@ -111,7 +111,7 @@ sap.ui.define(
111
111
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
112
112
  * @public
113
113
  */
114
- FilterBarAPI.prototype.iConfirmFilterAdaptation = function() {
114
+ FilterBarAPI.prototype.iConfirmFilterAdaptation = function () {
115
115
  return this.prepareResult(
116
116
  FilterBarBuilder.createAdaptationDialogBuilder(this.getOpaInstance())
117
117
  .doPressFooterButton(OpaBuilder.Matchers.resourceBundle("text", "sap.ui.mdc", "p13nDialog.OK"))
@@ -130,10 +130,9 @@ sap.ui.define(
130
130
  * @param {Function|Array|sap.ui.test.actions.Action} [vActions] The actions to be executed on found adaptation field
131
131
  * @param {string} sDescription The description of the check or adaptation
132
132
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
133
- *
134
133
  * @ui5-restricted
135
134
  */
136
- FilterBarAPI.prototype.filterFieldAdaptation = function(vFieldIdentifier, mState, vActions, sDescription) {
135
+ FilterBarAPI.prototype.filterFieldAdaptation = function (vFieldIdentifier, mState, vActions, sDescription) {
137
136
  var aArguments = Utils.parseArguments([[String, Object], Object, [Function, Array, Action], String], arguments),
138
137
  oBuilder = FEBuilder.create(this.getOpaInstance()),
139
138
  bPopoverOpen,
@@ -173,7 +172,7 @@ sap.ui.define(
173
172
  return this.prepareResult(
174
173
  oBuilder
175
174
  .success(
176
- function() {
175
+ function () {
177
176
  bPopoverOpen = FEBuilder.controlsExist(oAdaptationDialogBuilder);
178
177
 
179
178
  if (!bPopoverOpen) {
@@ -186,7 +185,7 @@ sap.ui.define(
186
185
 
187
186
  return oAdaptationDialogBuilder
188
187
  .has(OpaBuilder.Matchers.children(oAdaptColumnBuilder))
189
- .has(function(aFoundAdaptationColumns) {
188
+ .has(function (aFoundAdaptationColumns) {
190
189
  if (bCheckForNotVisible) {
191
190
  return aFoundAdaptationColumns.length === 0;
192
191
  }
@@ -13,7 +13,7 @@ sap.ui.define(
13
13
  "sap/ui/test/OpaBuilder",
14
14
  "sap/fe/test/builder/VMBuilder"
15
15
  ],
16
- function(FilterBarAPI, Utils, EditState, FEBuilder, Opa5, OpaBuilder, VMBuilder) {
16
+ function (FilterBarAPI, Utils, EditState, FEBuilder, Opa5, OpaBuilder, VMBuilder) {
17
17
  "use strict";
18
18
 
19
19
  /**
@@ -28,7 +28,7 @@ sap.ui.define(
28
28
  * @hideconstructor
29
29
  * @public
30
30
  */
31
- var FilterBarActions = function(oFilterBarBuilder, vFilterBarDescription) {
31
+ var FilterBarActions = function (oFilterBarBuilder, vFilterBarDescription) {
32
32
  return FilterBarAPI.call(this, oFilterBarBuilder, vFilterBarDescription);
33
33
  };
34
34
  FilterBarActions.prototype = Object.create(FilterBarAPI.prototype);
@@ -44,7 +44,7 @@ sap.ui.define(
44
44
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
45
45
  * @public
46
46
  */
47
- FilterBarActions.prototype.iChangeFilterField = function(vFieldIdentifier, vValue, bClearFirst) {
47
+ FilterBarActions.prototype.iChangeFilterField = function (vFieldIdentifier, vValue, bClearFirst) {
48
48
  var aArguments = Utils.parseArguments([[String, Object], String, Boolean], arguments),
49
49
  oFieldBuilder = FilterBarAPI.createFilterFieldBuilder(this.getBuilder(), aArguments[0]);
50
50
 
@@ -69,10 +69,9 @@ sap.ui.define(
69
69
  *
70
70
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} vFieldIdentifier The identifier of the filter field
71
71
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, that can be used for chaining statements
72
- *
73
72
  * @public
74
73
  */
75
- FilterBarActions.prototype.iOpenValueHelp = function(vFieldIdentifier) {
74
+ FilterBarActions.prototype.iOpenValueHelp = function (vFieldIdentifier) {
76
75
  var oFieldBuilder = FilterBarAPI.createFilterFieldBuilder(this.getBuilder(), vFieldIdentifier);
77
76
  return this.prepareResult(
78
77
  oFieldBuilder
@@ -93,10 +92,9 @@ sap.ui.define(
93
92
  *
94
93
  * @param {string} [sSearchText] The new search text
95
94
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
96
- *
97
95
  * @public
98
96
  */
99
- FilterBarActions.prototype.iChangeSearchField = function(sSearchText) {
97
+ FilterBarActions.prototype.iChangeSearchField = function (sSearchText) {
100
98
  var oFilterBarBuilder = this.getBuilder();
101
99
  return this.prepareResult(
102
100
  oFilterBarBuilder
@@ -116,10 +114,9 @@ sap.ui.define(
116
114
  * Resets the search field.
117
115
  *
118
116
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
119
- *
120
117
  * @public
121
118
  */
122
- FilterBarActions.prototype.iResetSearchField = function() {
119
+ FilterBarActions.prototype.iResetSearchField = function () {
123
120
  var oFilterBarBuilder = this.getBuilder();
124
121
  return this.prepareResult(
125
122
  oFilterBarBuilder
@@ -134,10 +131,9 @@ sap.ui.define(
134
131
  *
135
132
  * @param {sap.fe.test.api.EditState} sEditState Value of an edit state
136
133
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
137
- *
138
134
  * @public
139
135
  */
140
- FilterBarActions.prototype.iChangeEditingStatus = function(sEditState) {
136
+ FilterBarActions.prototype.iChangeEditingStatus = function (sEditState) {
141
137
  var oFilterBarBuilder = this.getBuilder();
142
138
  return this.prepareResult(
143
139
  oFilterBarBuilder
@@ -157,10 +153,9 @@ sap.ui.define(
157
153
  * Executes the search with the current filters.
158
154
  *
159
155
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
160
- *
161
156
  * @public
162
157
  */
163
- FilterBarActions.prototype.iExecuteSearch = function() {
158
+ FilterBarActions.prototype.iExecuteSearch = function () {
164
159
  var oFilterBarBuilder = this.getBuilder();
165
160
  return this.prepareResult(
166
161
  oFilterBarBuilder
@@ -175,10 +170,9 @@ sap.ui.define(
175
170
  *
176
171
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} vFieldIdentifier The identifier of the field
177
172
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
178
- *
179
173
  * @public
180
174
  */
181
- FilterBarActions.prototype.iAddAdaptationFilterField = function(vFieldIdentifier) {
175
+ FilterBarActions.prototype.iAddAdaptationFilterField = function (vFieldIdentifier) {
182
176
  return this.filterFieldAdaptation(
183
177
  vFieldIdentifier,
184
178
  { selected: false },
@@ -192,10 +186,9 @@ sap.ui.define(
192
186
  *
193
187
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} vFieldIdentifier The identifier of the field
194
188
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
195
- *
196
189
  * @public
197
190
  */
198
- FilterBarActions.prototype.iRemoveAdaptationFilterField = function(vFieldIdentifier) {
191
+ FilterBarActions.prototype.iRemoveAdaptationFilterField = function (vFieldIdentifier) {
199
192
  return this.filterFieldAdaptation(
200
193
  vFieldIdentifier,
201
194
  { selected: true },
@@ -210,10 +203,9 @@ sap.ui.define(
210
203
  * @param {string} sShortcut Pattern for the shortcut
211
204
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} [vFieldIdentifier] The identifier of the field
212
205
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
213
- *
214
206
  * @public
215
207
  */
216
- FilterBarActions.prototype.iExecuteKeyboardShortcut = function(sShortcut, vFieldIdentifier) {
208
+ FilterBarActions.prototype.iExecuteKeyboardShortcut = function (sShortcut, vFieldIdentifier) {
217
209
  var oBuilder = vFieldIdentifier
218
210
  ? FilterBarAPI.createFilterFieldBuilder(this.getBuilder(), vFieldIdentifier)
219
211
  : this.getBuilder();
@@ -239,12 +231,11 @@ sap.ui.define(
239
231
  * @param {string} [bSetAsDefault] Saves the new variant with option "Set as Default".
240
232
  * @param {string} [bApplyAutomatically] Saves the new variant with option "Apply Automatically".
241
233
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
242
- *
243
234
  * @public
244
235
  */
245
- FilterBarActions.prototype.iSaveVariant = function(sVariantName, bSetAsDefault, bApplyAutomatically) {
236
+ FilterBarActions.prototype.iSaveVariant = function (sVariantName, bSetAsDefault, bApplyAutomatically) {
246
237
  var fnSuccessFunction = Utils.isOfType(sVariantName, String)
247
- ? function(oFilterBar) {
238
+ ? function (oFilterBar) {
248
239
  return VMBuilder.create(this)
249
240
  .hasId(oFilterBar.getId() + "::VariantManagement")
250
241
  .doSaveAs(sVariantName, bSetAsDefault, bApplyAutomatically)
@@ -259,7 +250,7 @@ sap.ui.define(
259
250
  )
260
251
  .execute();
261
252
  }
262
- : function(oFilterBar) {
253
+ : function (oFilterBar) {
263
254
  return VMBuilder.create(this)
264
255
  .hasId(oFilterBar.getId() + "::VariantManagement")
265
256
  .doSave()
@@ -267,11 +258,7 @@ sap.ui.define(
267
258
  .execute();
268
259
  };
269
260
 
270
- return this.prepareResult(
271
- this.getBuilder()
272
- .success(fnSuccessFunction.bind(this))
273
- .execute()
274
- );
261
+ return this.prepareResult(this.getBuilder().success(fnSuccessFunction.bind(this)).execute());
275
262
  };
276
263
 
277
264
  /**
@@ -279,14 +266,13 @@ sap.ui.define(
279
266
  *
280
267
  * @param {string} sVariantName The name of the variant to be selected
281
268
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
282
- *
283
269
  * @public
284
270
  */
285
- FilterBarActions.prototype.iSelectVariant = function(sVariantName) {
271
+ FilterBarActions.prototype.iSelectVariant = function (sVariantName) {
286
272
  return this.prepareResult(
287
273
  this.getBuilder()
288
274
  .success(
289
- function(oFilterBar) {
275
+ function (oFilterBar) {
290
276
  return VMBuilder.create(this)
291
277
  .hasId(oFilterBar.getId() + "::VariantManagement")
292
278
  .doSelectVariant(sVariantName)
@@ -298,20 +284,20 @@ sap.ui.define(
298
284
  );
299
285
  };
300
286
 
301
- FilterBarActions.prototype.iSelectVisualFilter = function(sVisualFilterIdentifier, sLabelValue, bIsSelected) {
287
+ FilterBarActions.prototype.iSelectVisualFilter = function (sVisualFilterIdentifier, sLabelValue, bIsSelected) {
302
288
  // var that = this;
303
289
  return this.prepareResult(
304
290
  OpaBuilder.create(this)
305
291
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
306
292
  .hasId(new RegExp(sVisualFilterIdentifier, "i"))
307
- .success(function(aVisualFilter) {
293
+ .success(function (aVisualFilter) {
308
294
  var oVisualFilter = aVisualFilter[0];
309
295
  var selectItem;
310
296
  var oInteractiveChart = oVisualFilter.getItems()[1].getItems()[0];
311
297
  var aItems =
312
298
  (oInteractiveChart.isA("sap.suite.ui.microchart.InteractiveLineChart") && oInteractiveChart.getPoints()) ||
313
299
  (oInteractiveChart.isA("sap.suite.ui.microchart.InteractiveBarChart") && oInteractiveChart.getBars());
314
- aItems.forEach(function(oItem) {
300
+ aItems.forEach(function (oItem) {
315
301
  if (oItem.getLabel() == sLabelValue) {
316
302
  selectItem = oItem;
317
303
  }
@@ -320,16 +306,16 @@ sap.ui.define(
320
306
  selectItem = aItems[0];
321
307
  }
322
308
  if (oInteractiveChart.isA("sap.suite.ui.microchart.InteractiveLineChart")) {
323
- var aPoints = oInteractiveChart.getSelectedPoints();
309
+ var aLineChartPoints = oInteractiveChart.getSelectedPoints();
324
310
  return oInteractiveChart.fireSelectionChanged({
325
- selectedPoints: aPoints,
311
+ selectedPoints: aLineChartPoints,
326
312
  point: selectItem,
327
313
  selected: bIsSelected
328
314
  });
329
315
  } else if (oInteractiveChart.isA("sap.suite.ui.microchart.InteractiveBarChart")) {
330
- var aPoints = oInteractiveChart.getSelectedBars();
316
+ var aBarChartPoints = oInteractiveChart.getSelectedBars();
331
317
  return oInteractiveChart.fireSelectionChanged({
332
- selectedPoints: aPoints,
318
+ selectedPoints: aBarChartPoints,
333
319
  point: selectItem,
334
320
  selected: bIsSelected
335
321
  });
@@ -339,12 +325,12 @@ sap.ui.define(
339
325
  .execute()
340
326
  );
341
327
  };
342
- FilterBarActions.prototype.iOpenVisualFilterValueHelp = function(sVisualFilterIdentifier) {
328
+ FilterBarActions.prototype.iOpenVisualFilterValueHelp = function (sVisualFilterIdentifier) {
343
329
  return this.prepareResult(
344
330
  OpaBuilder.create(this)
345
331
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
346
332
  .hasId(new RegExp(sVisualFilterIdentifier, "i"))
347
- .success(function(aVisualFilter) {
333
+ .success(function (aVisualFilter) {
348
334
  var sVFId = aVisualFilter[0].getId();
349
335
  OpaBuilder.create(this)
350
336
  .hasType("sap.m.Button")
@@ -11,7 +11,7 @@ sap.ui.define(
11
11
  "sap/ui/test/OpaBuilder",
12
12
  "sap/fe/macros/filter/DraftEditState"
13
13
  ],
14
- function(FilterBarAPI, Utils, FEBuilder, OpaBuilder, EditState) {
14
+ function (FilterBarAPI, Utils, FEBuilder, OpaBuilder, EditState) {
15
15
  "use strict";
16
16
 
17
17
  /**
@@ -26,7 +26,7 @@ sap.ui.define(
26
26
  * @hideconstructor
27
27
  * @public
28
28
  */
29
- var FilterBarAssertions = function(oFilterBarBuilder, vFilterBarDescription) {
29
+ var FilterBarAssertions = function (oFilterBarBuilder, vFilterBarDescription) {
30
30
  return FilterBarAPI.call(this, oFilterBarBuilder, vFilterBarDescription);
31
31
  };
32
32
  FilterBarAssertions.prototype = Object.create(FilterBarAPI.prototype);
@@ -38,10 +38,9 @@ sap.ui.define(
38
38
  *
39
39
  * @param {object} [mFilterBarState] Defines the expected state of the filter bar
40
40
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
41
- *
42
41
  * @public
43
42
  */
44
- FilterBarAssertions.prototype.iCheckState = function(mFilterBarState) {
43
+ FilterBarAssertions.prototype.iCheckState = function (mFilterBarState) {
45
44
  var oFilterBarBuilder = this.getBuilder(),
46
45
  sDescription = this.getIdentifier();
47
46
 
@@ -63,10 +62,9 @@ sap.ui.define(
63
62
  * @param {string} [sOperator] The expected operator
64
63
  * @param {object} [mState] Defines the expected state of the filter field
65
64
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
66
- *
67
65
  * @public
68
66
  */
69
- FilterBarAssertions.prototype.iCheckFilterField = function(vFieldIdentifier, vConditionValues, sOperator, mState) {
67
+ FilterBarAssertions.prototype.iCheckFilterField = function (vFieldIdentifier, vConditionValues, sOperator, mState) {
70
68
  var aArguments = Utils.parseArguments([[String, Object], [String, Array, Object, Boolean], String, Object], arguments),
71
69
  oFieldBuilder = FilterBarAPI.createFilterFieldBuilder(this.getBuilder(), aArguments[0], aArguments[3]);
72
70
 
@@ -96,10 +94,9 @@ sap.ui.define(
96
94
  * @param {string} [sSearchText] The expected text in the search field
97
95
  * @param {object} [mState] Defines the expected state of the search field
98
96
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
99
- *
100
97
  * @public
101
98
  */
102
- FilterBarAssertions.prototype.iCheckSearchField = function(sSearchText, mState) {
99
+ FilterBarAssertions.prototype.iCheckSearchField = function (sSearchText, mState) {
103
100
  var aArguments = Utils.parseArguments([String, Object], arguments),
104
101
  oFilterBarBuilder = this.getBuilder();
105
102
  return this.prepareResult(
@@ -123,10 +120,9 @@ sap.ui.define(
123
120
  * @param {sap.fe.test.api.EditState} [sEditState] The expected edit state value
124
121
  * @param {object} [mFieldState] Defines the expected state of the filter field
125
122
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
126
- *
127
123
  * @public
128
124
  */
129
- FilterBarAssertions.prototype.iCheckEditingStatus = function(sEditState, mFieldState) {
125
+ FilterBarAssertions.prototype.iCheckEditingStatus = function (sEditState, mFieldState) {
130
126
  var aArguments = Utils.parseArguments([String, Object], arguments),
131
127
  oFilterBarBuilder = this.getBuilder();
132
128
  return this.prepareResult(
@@ -149,10 +145,9 @@ sap.ui.define(
149
145
  *
150
146
  * @param {object} [mState] Defines the expected state of the Go button
151
147
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
152
- *
153
148
  * @public
154
149
  */
155
- FilterBarAssertions.prototype.iCheckSearch = function(mState) {
150
+ FilterBarAssertions.prototype.iCheckSearch = function (mState) {
156
151
  var oFilterBarBuilder = this.getBuilder();
157
152
  return this.prepareResult(
158
153
  oFilterBarBuilder
@@ -166,10 +161,9 @@ sap.ui.define(
166
161
  * Checks whether the filter adaptation dialog is open.
167
162
  *
168
163
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
169
- *
170
164
  * @public
171
165
  */
172
- FilterBarAssertions.prototype.iCheckFilterAdaptation = function() {
166
+ FilterBarAssertions.prototype.iCheckFilterAdaptation = function () {
173
167
  var oAdaptationPopoverBuilder = FEBuilder.createPopoverBuilder(
174
168
  this.getOpaInstance(),
175
169
  OpaBuilder.Matchers.resourceBundle("title", "sap.ui.mdc", "filterbar.ADAPT_TITLE")
@@ -187,10 +181,9 @@ sap.ui.define(
187
181
  * @param {string | sap.fe.test.api.FilterFieldIdentifier} vFieldIdentifier The identifier of the filter field, or its label
188
182
  * @param {object} [mState] Defines the expected state of the filter field in the adaptation dialog
189
183
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
190
- *
191
184
  * @public
192
185
  */
193
- FilterBarAssertions.prototype.iCheckAdaptationFilterField = function(vFieldIdentifier, mState) {
186
+ FilterBarAssertions.prototype.iCheckAdaptationFilterField = function (vFieldIdentifier, mState) {
194
187
  return this.filterFieldAdaptation(
195
188
  vFieldIdentifier,
196
189
  mState,
@@ -203,11 +196,11 @@ sap.ui.define(
203
196
  );
204
197
  };
205
198
 
206
- FilterBarAssertions.prototype.iCheckVisualFilterSelections = function(sVisualFilterIdentifier, aLabelValues) {
199
+ FilterBarAssertions.prototype.iCheckVisualFilterSelections = function (sVisualFilterIdentifier, aLabelValues) {
207
200
  return this.prepareResult(
208
201
  OpaBuilder.create(this)
209
202
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
210
- .check(function(aVisualFilters) {
203
+ .check(function (aVisualFilters) {
211
204
  var oVisualFilter;
212
205
  for (var i = 0; i < aVisualFilters.length; i++) {
213
206
  if (
@@ -226,7 +219,7 @@ sap.ui.define(
226
219
  oInteractiveChart.getSelectedPoints()) ||
227
220
  (oInteractiveChart.isA("sap.suite.ui.microchart.InteractiveBarChart") && oInteractiveChart.getSelectedBars());
228
221
  var aSelectedValues = [];
229
- aSelectedItems.forEach(function(oItem) {
222
+ aSelectedItems.forEach(function (oItem) {
230
223
  aSelectedValues.push(oItem.getLabel());
231
224
  });
232
225
  aLabelValues.sort();
@@ -246,11 +239,11 @@ sap.ui.define(
246
239
  );
247
240
  };
248
241
 
249
- FilterBarAssertions.prototype.iCheckVisualFilterTitleAndToolTip = function(sVisualFilterIdentifier, sTitle, sToolTip) {
242
+ FilterBarAssertions.prototype.iCheckVisualFilterTitleAndToolTip = function (sVisualFilterIdentifier, sTitle, sToolTip) {
250
243
  return this.prepareResult(
251
244
  OpaBuilder.create(this)
252
245
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
253
- .check(function(aVisualFilters) {
246
+ .check(function (aVisualFilters) {
254
247
  var oVisualFilter;
255
248
  for (var i = 0; i < aVisualFilters.length; i++) {
256
249
  if (
@@ -263,14 +256,8 @@ sap.ui.define(
263
256
  break;
264
257
  }
265
258
  }
266
- var sMeasureDimensionTitle = oVisualFilter
267
- .getItems()[0]
268
- .getItems()[0]
269
- .getContent()[0];
270
- var sScaleUOMTitle = oVisualFilter
271
- .getItems()[0]
272
- .getItems()[0]
273
- .getContent()[1];
259
+ var sMeasureDimensionTitle = oVisualFilter.getItems()[0].getItems()[0].getContent()[0];
260
+ var sScaleUOMTitle = oVisualFilter.getItems()[0].getItems()[0].getContent()[1];
274
261
  var sScaleUOMTitleText = sScaleUOMTitle ? sScaleUOMTitle.getText() : " | ";
275
262
  return (
276
263
  sTitle ===
@@ -284,11 +271,11 @@ sap.ui.define(
284
271
  );
285
272
  };
286
273
 
287
- FilterBarAssertions.prototype.iCheckVisualFilterValueHelp = function(sVisualFilterIdentifier, iCount) {
274
+ FilterBarAssertions.prototype.iCheckVisualFilterValueHelp = function (sVisualFilterIdentifier, iCount) {
288
275
  return this.prepareResult(
289
276
  OpaBuilder.create(this)
290
277
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
291
- .check(function(aVisualFilters) {
278
+ .check(function (aVisualFilters) {
292
279
  var oVisualFilter;
293
280
  for (var i = 0; i < aVisualFilters.length; i++) {
294
281
  if (
@@ -301,10 +288,7 @@ sap.ui.define(
301
288
  break;
302
289
  }
303
290
  }
304
- var sValueHelp = oVisualFilter
305
- .getItems()[0]
306
- .getItems()[0]
307
- .getContent()[3];
291
+ var sValueHelp = oVisualFilter.getItems()[0].getItems()[0].getContent()[3];
308
292
  var sValueHelpCount = sValueHelp ? sValueHelp.getText() : undefined;
309
293
  return sValueHelp && sValueHelpCount === iCount;
310
294
  })
@@ -313,11 +297,11 @@ sap.ui.define(
313
297
  );
314
298
  };
315
299
 
316
- FilterBarAssertions.prototype.iCheckVisualFilterCriticality = function(sVisualFilterIdentifier, sLabelValue, sCriticality) {
300
+ FilterBarAssertions.prototype.iCheckVisualFilterCriticality = function (sVisualFilterIdentifier, sLabelValue, sCriticality) {
317
301
  return this.prepareResult(
318
302
  OpaBuilder.create(this)
319
303
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
320
- .check(function(aVisualFilters) {
304
+ .check(function (aVisualFilters) {
321
305
  var oVisualFilter;
322
306
  for (var i = 0; i < aVisualFilters.length; i++) {
323
307
  if (
@@ -346,11 +330,11 @@ sap.ui.define(
346
330
  );
347
331
  };
348
332
 
349
- FilterBarAssertions.prototype.iCheckVisualFilterValues = function(sVisualFilterIdentifier, aValues) {
333
+ FilterBarAssertions.prototype.iCheckVisualFilterValues = function (sVisualFilterIdentifier, aValues) {
350
334
  return this.prepareResult(
351
335
  OpaBuilder.create(this)
352
336
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
353
- .check(function(aVisualFilters) {
337
+ .check(function (aVisualFilters) {
354
338
  var oVisualFilter;
355
339
  for (var i = 0; i < aVisualFilters.length; i++) {
356
340
  if (
@@ -382,11 +366,11 @@ sap.ui.define(
382
366
  );
383
367
  };
384
368
 
385
- FilterBarAssertions.prototype.iCheckErrorMessageAndTitle = function(sVisualFilterIdentifier, sErrorMessage, sErrorMessageTitle) {
369
+ FilterBarAssertions.prototype.iCheckErrorMessageAndTitle = function (sVisualFilterIdentifier, sErrorMessage, sErrorMessageTitle) {
386
370
  return this.prepareResult(
387
371
  OpaBuilder.create(this)
388
372
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
389
- .check(function(aVisualFilters) {
373
+ .check(function (aVisualFilters) {
390
374
  var oVisualFilter;
391
375
  for (var i = 0; i < aVisualFilters.length; i++) {
392
376
  if (
@@ -409,11 +393,11 @@ sap.ui.define(
409
393
  );
410
394
  };
411
395
 
412
- FilterBarAssertions.prototype.iCheckIsVisualFilterRequired = function(sVisualFilterIdentifier) {
396
+ FilterBarAssertions.prototype.iCheckIsVisualFilterRequired = function (sVisualFilterIdentifier) {
413
397
  return this.prepareResult(
414
398
  OpaBuilder.create(this)
415
399
  .hasType("sap.fe.core.controls.filterbar.VisualFilter")
416
- .check(function(aVisualFilters) {
400
+ .check(function (aVisualFilters) {
417
401
  var oVisualFilter;
418
402
  for (var i = 0; i < aVisualFilters.length; i++) {
419
403
  if (
@@ -426,10 +410,7 @@ sap.ui.define(
426
410
  break;
427
411
  }
428
412
  }
429
- var oLabel = oVisualFilter
430
- .getItems()[0]
431
- .getItems()[0]
432
- .getContent()[0];
413
+ var oLabel = oVisualFilter.getItems()[0].getItems()[0].getContent()[0];
433
414
  return oLabel.isA("sap.m.Label") && oLabel.getVisible() && oLabel.getRequired();
434
415
  })
435
416
  .description("Checking Whether " + sVisualFilterIdentifier + " VisualFilter is Mandatory")
@@ -3,7 +3,7 @@
3
3
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
4
 
5
5
  */
6
- sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function(FooterAPI, Utils, OpaBuilder) {
6
+ sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function (FooterAPI, Utils, OpaBuilder) {
7
7
  "use strict";
8
8
 
9
9
  /**
@@ -17,7 +17,7 @@ sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], fu
17
17
  * @hideconstructor
18
18
  * @public
19
19
  */
20
- var FooterActionsBase = function(oOverflowToolbarBuilder, vFooterDescription) {
20
+ var FooterActionsBase = function (oOverflowToolbarBuilder, vFooterDescription) {
21
21
  return FooterAPI.call(this, oOverflowToolbarBuilder, vFooterDescription);
22
22
  };
23
23
  FooterActionsBase.prototype = Object.create(FooterAPI.prototype);
@@ -29,10 +29,9 @@ sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], fu
29
29
  *
30
30
  * @param {string | sap.fe.test.api.ActionIdentifier} [vActionIdentifier] The identifier of the action or its label
31
31
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
32
- *
33
32
  * @public
34
33
  */
35
- FooterActionsBase.prototype.iExecuteAction = function(vActionIdentifier) {
34
+ FooterActionsBase.prototype.iExecuteAction = function (vActionIdentifier) {
36
35
  var oOverflowToolbarBuilder = this.getBuilder();
37
36
 
38
37
  return this.prepareResult(
@@ -3,7 +3,7 @@
3
3
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
4
 
5
5
  */
6
- sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function(FooterActionsBase, Utils, OpaBuilder) {
6
+ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function (FooterActionsBase, Utils, OpaBuilder) {
7
7
  "use strict";
8
8
 
9
9
  /**
@@ -18,7 +18,7 @@ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuild
18
18
  * @hideconstructor
19
19
  * @public
20
20
  */
21
- var FooterActionsOP = function(oOverflowToolbarBuilder, vFooterDescription) {
21
+ var FooterActionsOP = function (oOverflowToolbarBuilder, vFooterDescription) {
22
22
  return FooterActionsBase.call(this, oOverflowToolbarBuilder, vFooterDescription);
23
23
  };
24
24
  FooterActionsOP.prototype = Object.create(FooterActionsBase.prototype);
@@ -29,10 +29,9 @@ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuild
29
29
  * Executes the Save or Create action in the footer bar of the object page.
30
30
  *
31
31
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
32
- *
33
32
  * @public
34
33
  */
35
- FooterActionsOP.prototype.iExecuteSave = function() {
34
+ FooterActionsOP.prototype.iExecuteSave = function () {
36
35
  return this.iExecuteAction({ service: "StandardAction", action: "Save", unbound: true });
37
36
  };
38
37
 
@@ -40,10 +39,9 @@ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuild
40
39
  * Executes the Apply action in the footer bar of a sub-object page.
41
40
  *
42
41
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
43
- *
44
42
  * @public
45
43
  */
46
- FooterActionsOP.prototype.iExecuteApply = function() {
44
+ FooterActionsOP.prototype.iExecuteApply = function () {
47
45
  return this.iExecuteAction({ service: "StandardAction", action: "Apply", unbound: true });
48
46
  };
49
47
 
@@ -51,10 +49,9 @@ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuild
51
49
  * Executes the Cancel action in the footer bar of the object page.
52
50
  *
53
51
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
54
- *
55
52
  * @public
56
53
  */
57
- FooterActionsOP.prototype.iExecuteCancel = function() {
54
+ FooterActionsOP.prototype.iExecuteCancel = function () {
58
55
  return this.iExecuteAction({ service: "StandardAction", action: "Cancel", unbound: true });
59
56
  };
60
57
 
@@ -62,10 +59,9 @@ sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuild
62
59
  * Confirms the Cancel action when user clicks <code>Cancel</code> in draft mode.
63
60
  *
64
61
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
65
- *
66
62
  * @public
67
63
  */
68
- FooterActionsOP.prototype.iConfirmCancel = function() {
64
+ FooterActionsOP.prototype.iConfirmCancel = function () {
69
65
  return this.prepareResult(
70
66
  OpaBuilder.create(this)
71
67
  .hasType("sap.m.Popover")