@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
@@ -3,7 +3,7 @@
3
3
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
4
 
5
5
  */
6
- sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnitUtils"], function(Opa5, OpaBuilder, QUnitUtils) {
6
+ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnitUtils"], function (Opa5, OpaBuilder, QUnitUtils) {
7
7
  "use strict";
8
8
 
9
9
  /**
@@ -11,13 +11,10 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
11
11
  *
12
12
  * @param {string} [sFacetId] The name of the Facet
13
13
  * @returns {object} A RegExp matching the Facet ID.
14
- *
15
14
  * @private
16
15
  */
17
16
  function getHeaderFacetContainerId(sFacetId) {
18
- var vId = new RegExp("fe::HeaderFacetContainer::" + sFacetId + "$");
19
-
20
- return vId;
17
+ return new RegExp("fe::HeaderFacetContainer::" + sFacetId + "$");
21
18
  }
22
19
 
23
20
  /**
@@ -25,13 +22,10 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
25
22
  *
26
23
  * @param {string} [sId] The name of the Section Facet
27
24
  * @returns {object} A RegExp matching the Section Facet ID
28
- *
29
25
  * @private
30
26
  */
31
27
  function getSectionId(sId) {
32
- var vId = new RegExp("fe::FacetSection::" + sId + "-anchor$");
33
-
34
- return vId;
28
+ return new RegExp("fe::FacetSection::" + sId + "-anchor$");
35
29
  }
36
30
 
37
31
  /**
@@ -39,7 +33,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
39
33
  *
40
34
  * @param {string} [sId] The ID of the Field including the RTA specific part, i.e. GeneralInformation::Content_sap.fe.manageitems.TechnicalTestingService.LineItems_dataField
41
35
  * @returns {object} A RegExp matching the FormElement ID.
42
- *
43
36
  * @private
44
37
  */
45
38
  function getFormElementRTAId(sId) {
@@ -52,53 +45,45 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
52
45
  * @param {string | RegExp} [vId] The name of the Facet
53
46
  * @param {boolean} [bCheckParent] Set to true to check the parent element of the control
54
47
  * @returns {object} A RegExp matching the Facet ID.
55
- *
56
48
  * @private
57
49
  */
58
50
  function generateHasReferencedControlIdMatcher(vId, bCheckParent) {
59
- var fnHasReferencedControlId = function(oOverlay) {
51
+ return function (oOverlay) {
60
52
  var oElement = bCheckParent ? oOverlay.getElementInstance().getParent() : oOverlay.getElementInstance(),
61
53
  sElementId = oElement && oElement.getId();
62
54
 
63
55
  return typeof vId === "string" ? sElementId === vId : vId.test(sElementId); // check ID of referenced control
64
56
  };
65
-
66
- return fnHasReferencedControlId;
67
57
  }
68
58
 
69
59
  return {
70
60
  actions: {
71
- iExecuteById: function(vId, sDescription) {
72
- return OpaBuilder.create(this)
73
- .viewId(null)
74
- .hasId(vId)
75
- .doPress()
76
- .description(sDescription)
77
- .execute();
61
+ iExecuteById: function (vId, sDescription) {
62
+ return OpaBuilder.create(this).viewId(null).hasId(vId).doPress().description(sDescription).execute();
78
63
  },
79
64
 
80
- iExecuteMeArea: function() {
65
+ iExecuteMeArea: function () {
81
66
  return this.iExecuteById("meAreaHeaderButton", "Me Area");
82
67
  },
83
68
 
84
- iExecuteAdaptUI: function() {
69
+ iExecuteAdaptUI: function () {
85
70
  return this.iExecuteById(/RTA_Plugin_ActionButton$/, "Adapt UI");
86
71
  },
87
72
 
88
- iExecuteAdaptation: function() {
73
+ iExecuteAdaptation: function () {
89
74
  return this.iExecuteById(/adaptationSwitcherButton$/, "Adaptation");
90
75
  },
91
76
 
92
- iExecuteNavigation: function() {
77
+ iExecuteNavigation: function () {
93
78
  return this.iExecuteById(/navigationSwitcherButton$/, "Navigation");
94
79
  },
95
80
 
96
- iWaitUntilTheBusyIndicatorIsGone: function() {
81
+ iWaitUntilTheBusyIndicatorIsGone: function () {
97
82
  // switch to Adapt UI can take some time, so we explicitly wait for non-busy
98
83
  return OpaBuilder.create(this)
99
84
  .viewId(null)
100
85
  .hasId("mainShell")
101
- .has(function(oRootView) {
86
+ .has(function (oRootView) {
102
87
  return oRootView.getBusy() === false;
103
88
  })
104
89
  .timeout(180) // could take some time
@@ -106,21 +91,21 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
106
91
  .execute();
107
92
  },
108
93
 
109
- iExecuteRightContextMenuById: function(vId, sDescription, bCheckParent) {
94
+ iExecuteRightContextMenuById: function (vId, sDescription, bCheckParent) {
110
95
  var fnHasReferencedControlId = generateHasReferencedControlIdMatcher(vId, bCheckParent);
111
96
 
112
97
  return OpaBuilder.create(this)
113
98
  .viewId(null)
114
99
  .hasType("sap.ui.dt.ElementOverlay")
115
100
  .has(fnHasReferencedControlId)
116
- .do(function(oOverlay) {
101
+ .do(function (oOverlay) {
117
102
  oOverlay.$().trigger("contextmenu"); // right click
118
103
  })
119
104
  .description(sDescription)
120
105
  .execute();
121
106
  },
122
107
 
123
- iExecuteLeftContextMenuById: function(vId, sDescription, bCheckParent) {
108
+ iExecuteLeftContextMenuById: function (vId, sDescription, bCheckParent) {
124
109
  var fnHasReferencedControlId = generateHasReferencedControlIdMatcher(vId, bCheckParent);
125
110
 
126
111
  return OpaBuilder.create(this)
@@ -132,19 +117,19 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
132
117
  .execute();
133
118
  },
134
119
 
135
- iExecuteRightContextMenuOnHeaderContainer: function() {
120
+ iExecuteRightContextMenuOnHeaderContainer: function () {
136
121
  return this.iExecuteRightContextMenuById(/fe::HeaderContentContainer$/, "Context menu for Header Container");
137
122
  },
138
123
 
139
- iExecuteRightContextMenuOnVariantManagement: function() {
124
+ iExecuteRightContextMenuOnVariantManagement: function () {
140
125
  return this.iExecuteRightContextMenuById(/fe::PageVariantManagement$/, "Context menu for Variant Management");
141
126
  },
142
127
 
143
- iExecuteRightContextMenuOnTable: function() {
128
+ iExecuteRightContextMenuOnTable: function () {
144
129
  return this.iExecuteRightContextMenuById(/fe::table::SalesOrderManage::LineItem$/, "Context menu for Table");
145
130
  },
146
131
 
147
- iExecuteRightContextMenuOnFilterBar: function() {
132
+ iExecuteRightContextMenuOnFilterBar: function () {
148
133
  return this.iExecuteRightContextMenuById(/fe::FilterBar::SalesOrderManage$/, "Context menu for FilterBar");
149
134
  },
150
135
 
@@ -154,62 +139,62 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
154
139
  },
155
140
  */
156
141
 
157
- iExecuteRightContextMenuOnHeaderFacet: function(sFacetId) {
142
+ iExecuteRightContextMenuOnHeaderFacet: function (sFacetId) {
158
143
  return this.iExecuteRightContextMenuById(getHeaderFacetContainerId(sFacetId), "Context menu for " + sFacetId, true);
159
144
  },
160
145
 
161
- iExecuteRightContextMenuOnSection: function(sId) {
146
+ iExecuteRightContextMenuOnSection: function (sId) {
162
147
  return this.iExecuteRightContextMenuById(getSectionId(sId), "Context menu for " + sId, false);
163
148
  },
164
149
 
165
- iExecuteRightContextMenuOnFormContainer: function(sId) {
150
+ iExecuteRightContextMenuOnFormContainer: function (sId) {
166
151
  return this.iExecuteRightContextMenuById(
167
152
  new RegExp("fe::FormContainer::" + sId + "$"),
168
153
  "Context menu for Form Container " + sId
169
154
  );
170
155
  },
171
156
 
172
- iExecuteRightContextMenuOnHeaderFacetFormContainer: function(sId) {
157
+ iExecuteRightContextMenuOnHeaderFacetFormContainer: function (sId) {
173
158
  return this.iExecuteRightContextMenuById(
174
159
  new RegExp("fe::HeaderFacet::FormContainer::" + sId + "$"),
175
160
  "Context menu for HeaderFacet Form Container " + sId
176
161
  );
177
162
  },
178
163
 
179
- iExecuteRightContextMenuOnHeaderFacetFormElement: function(sId) {
164
+ iExecuteRightContextMenuOnHeaderFacetFormElement: function (sId) {
180
165
  return this.iExecuteRightContextMenuById(
181
166
  new RegExp("fe::HeaderFacet::FormContainer::" + sId + "::FormElement" + "$"),
182
167
  "Context menu for HeaderFacet Form Element " + sId
183
168
  );
184
169
  },
185
170
 
186
- iExecuteLeftContextMenuOnSection: function(sId) {
171
+ iExecuteLeftContextMenuOnSection: function (sId) {
187
172
  return this.iExecuteLeftContextMenuById(getSectionId(sId), "Left context menu for " + sId, false);
188
173
  },
189
174
 
190
- iExecuteLeftContextMenuOnHeaderFacet: function(sFacetId) {
175
+ iExecuteLeftContextMenuOnHeaderFacet: function (sFacetId) {
191
176
  return this.iExecuteLeftContextMenuById(getHeaderFacetContainerId(sFacetId), "Left Context menu for " + sFacetId, true);
192
177
  },
193
178
 
194
- iExecuteLeftContextMenuOnHeaderFacetFormContainer: function(sId) {
179
+ iExecuteLeftContextMenuOnHeaderFacetFormContainer: function (sId) {
195
180
  return this.iExecuteLeftContextMenuById(
196
181
  new RegExp("fe::HeaderFacet::FormContainer::" + sId + "$"),
197
182
  "Left context menu for HeaderFacet Form Container " + sId
198
183
  );
199
184
  },
200
185
 
201
- iExecuteLeftContextMenuOnHeaderFacetFormElement: function(sId) {
186
+ iExecuteLeftContextMenuOnHeaderFacetFormElement: function (sId) {
202
187
  return this.iExecuteLeftContextMenuById(
203
188
  new RegExp("fe::HeaderFacet::FormContainer::" + sId + "::FormElement" + "$"),
204
189
  "Left context menu for HeaderFacet Form Element " + sId
205
190
  );
206
191
  },
207
192
 
208
- iExecuteRightContextMenuOnFieldAddedViaRTA: function(sId) {
193
+ iExecuteRightContextMenuOnFieldAddedViaRTA: function (sId) {
209
194
  return this.iExecuteRightContextMenuById(getFormElementRTAId("_" + sId), "Context menu for Field " + sId);
210
195
  },
211
196
 
212
- iExecuteFocusOnAnchorBar: function() {
197
+ iExecuteFocusOnAnchorBar: function () {
213
198
  return OpaBuilder.create(this)
214
199
  .viewId(null)
215
200
  .hasId(/fe::ObjectPage-anchBar$/)
@@ -218,7 +203,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
218
203
  .execute();
219
204
  },
220
205
 
221
- iExecutePopOverActionByIcon: function(sIcon, sDescription) {
206
+ iExecutePopOverActionByIcon: function (sIcon, sDescription) {
222
207
  return OpaBuilder.create(this)
223
208
  .viewId(null)
224
209
  .hasType("sap.ui.unified.MenuItem")
@@ -229,7 +214,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
229
214
  .execute();
230
215
  },
231
216
 
232
- iExecutePopOverButtonByIcon: function(sIcon, sDescription) {
217
+ iExecutePopOverButtonByIcon: function (sIcon, sDescription) {
233
218
  return OpaBuilder.create(this)
234
219
  .viewId(null)
235
220
  .hasType("sap.m.Button")
@@ -240,98 +225,77 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
240
225
  .execute();
241
226
  },
242
227
 
243
- iExecutePopOverActionRename: function(sId) {
228
+ iExecutePopOverActionRename: function (sId) {
244
229
  return this.iExecutePopOverActionByIcon("edit", "Press rename on " + sId);
245
230
  },
246
231
 
247
- iExecutePopOverActionAdd: function(sDescription) {
232
+ iExecutePopOverActionAdd: function (sDescription) {
248
233
  return this.iExecutePopOverActionByIcon("add", sDescription);
249
234
  },
250
235
 
251
- iExecutePopOverActionRemove: function(sDescription) {
236
+ iExecutePopOverActionRemove: function (sDescription) {
252
237
  return this.iExecutePopOverActionByIcon("less", sDescription);
253
238
  },
254
239
 
255
- iExecutePopOverActionCut: function(sDescription) {
240
+ iExecutePopOverActionCut: function (sDescription) {
256
241
  return this.iExecutePopOverActionByIcon("scissors", sDescription);
257
242
  },
258
243
 
259
- iExecutePopOverActionPaste: function(sDescription) {
244
+ iExecutePopOverActionPaste: function (sDescription) {
260
245
  return this.iExecutePopOverActionByIcon("paste", sDescription);
261
246
  },
262
247
 
263
- iExecutePopOverActionDuplicate: function(sDescription) {
248
+ iExecutePopOverActionDuplicate: function (sDescription) {
264
249
  return this.iExecutePopOverActionByIcon("duplicate", "Duplicate Variant '" + sDescription + "'");
265
250
  },
266
251
 
267
- iExecutePopOverActionSettings: function(sDescription) {
252
+ iExecutePopOverActionSettings: function (sDescription) {
268
253
  return this.iExecutePopOverActionByIcon("key-user-settings", "Open " + sDescription + " Settings");
269
254
  },
270
255
 
271
- iExecutePopOverActionEmbedContent: function(sDescription) {
256
+ iExecutePopOverActionEmbedContent: function (sDescription) {
272
257
  return this.iExecutePopOverActionByIcon("tnt/content-enricher", "Open " + sDescription + " Settings");
273
258
  },
274
259
 
275
- iSwitchToGroupViewInTheFilterBarDialog: function() {
260
+ iSwitchToGroupViewInTheFilterBarDialog: function () {
276
261
  return this.iExecutePopOverButtonByIcon("group-2", "Switch to grouped view in filter bar dialog");
277
262
  },
278
263
 
279
- iSelectExpandFiltersgroupInTheFilterBarDialog: function(sFiltersgroupName) {
264
+ iSelectExpandFiltersgroupInTheFilterBarDialog: function (sFiltersgroupName) {
280
265
  return OpaBuilder.create(this)
281
266
  .viewId(null)
282
267
  .hasType("sap.m.Panel")
283
- .hasChildren(
284
- OpaBuilder.create(this)
285
- .hasType("sap.m.Label")
286
- .hasProperties({ text: sFiltersgroupName })
287
- )
288
- .doOnChildren(
289
- OpaBuilder.create(this)
290
- .hasType("sap.m.Button")
291
- .doPress()
292
- )
268
+ .hasChildren(OpaBuilder.create(this).hasType("sap.m.Label").hasProperties({ text: sFiltersgroupName }))
269
+ .doOnChildren(OpaBuilder.create(this).hasType("sap.m.Button").doPress())
293
270
  .description("Expanding filter group wiht name '" + sFiltersgroupName + "'")
294
271
  .execute();
295
272
  },
296
273
 
297
- iSelectCheckBoxInTheFilterBarDialog: function(sText) {
274
+ iSelectCheckBoxInTheFilterBarDialog: function (sText) {
298
275
  return OpaBuilder.create(this)
299
276
  .viewId(null)
300
277
  .hasType("sap.m.CustomListItem")
301
278
  .doOnChildren(
302
279
  OpaBuilder.create(this)
303
280
  .hasType("sap.m.CustomListItem")
304
- .hasChildren(
305
- OpaBuilder.create(this)
306
- .hasType("sap.m.Label")
307
- .hasProperties({ text: sText })
308
- )
309
- .doOnChildren(
310
- OpaBuilder.create(this)
311
- .hasType("sap.m.CheckBox")
312
- .doPress()
313
- )
281
+ .hasChildren(OpaBuilder.create(this).hasType("sap.m.Label").hasProperties({ text: sText }))
282
+ .doOnChildren(OpaBuilder.create(this).hasType("sap.m.CheckBox").doPress())
314
283
  )
315
284
  .description("Selected Checkbox next to '" + sText + "'")
316
285
  .execute();
317
286
  },
318
287
 
319
- iChangeVisibilityFilter: function(sSelection) {
288
+ iChangeVisibilityFilter: function (sSelection) {
320
289
  return OpaBuilder.create(this)
321
290
  .viewId(null)
322
291
  .hasType("sap.m.Bar")
323
292
  .isDialogElement()
324
- .doOnChildren(
325
- OpaBuilder.create(this)
326
- .hasType("sap.m.Select")
327
- .checkNumberOfMatches(1)
328
- .doEnterText(sSelection)
329
- )
293
+ .doOnChildren(OpaBuilder.create(this).hasType("sap.m.Select").checkNumberOfMatches(1).doEnterText(sSelection))
330
294
  .description("Changed displayed fields to '" + sSelection + "'")
331
295
  .execute();
332
296
  },
333
297
 
334
- iEnterUrlInTheTextArea: function(sUrl) {
298
+ iEnterUrlInTheTextArea: function (sUrl) {
335
299
  return OpaBuilder.create(this)
336
300
  .viewId(null)
337
301
  .hasType("sap.m.TextArea")
@@ -342,7 +306,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
342
306
  .execute();
343
307
  },
344
308
 
345
- iSwitchToReorderOnDialog: function() {
309
+ iSwitchToReorderOnDialog: function () {
346
310
  return OpaBuilder.create(this)
347
311
  .viewId(null)
348
312
  .hasType("sap.m.Button")
@@ -353,7 +317,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
353
317
  .execute();
354
318
  },
355
319
 
356
- _iSelectALabelOnTheReorderDialog: function(sText) {
320
+ _iSelectALabelOnTheReorderDialog: function (sText) {
357
321
  return OpaBuilder.create(this)
358
322
  .viewId(null)
359
323
  .hasType("sap.m.Label")
@@ -368,11 +332,10 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
368
332
  *
369
333
  * @param {string} [sLabel] label of column which should be reordered
370
334
  * @param {number} [nNewPlace] which of the four reorder buttons should be pressed (0-3), effectively changes where the selected Label should move to
371
- *
372
335
  * @private
373
336
  */
374
337
 
375
- iReorderTableColumn: function(sLabel, nNewPlace) {
338
+ iReorderTableColumn: function (sLabel, nNewPlace) {
376
339
  this._iSelectALabelOnTheReorderDialog(sLabel);
377
340
  var iconSpecific,
378
341
  Icon = "sap-icon://";
@@ -397,7 +360,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
397
360
  .execute();
398
361
  },
399
362
 
400
- iEnterTextInSearchfield: function(sNewText) {
363
+ iEnterTextInSearchfield: function (sNewText) {
401
364
  return OpaBuilder.create(this)
402
365
  .viewId(null)
403
366
  .hasType("sap.m.SearchField")
@@ -408,7 +371,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
408
371
  .execute();
409
372
  },
410
373
 
411
- iEnterTextinFilterField: function(sText) {
374
+ iEnterTextinFilterField: function (sText) {
412
375
  return OpaBuilder.create(this)
413
376
  .hasType("sap.ui.mdc.field.FieldMultiInput")
414
377
  .checkNumberOfMatches(1)
@@ -417,12 +380,12 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
417
380
  .execute();
418
381
  },
419
382
 
420
- iSelectAFieldInTheDialog: function(vTooltip) {
383
+ iSelectAFieldInTheDialog: function (vTooltip) {
421
384
  return OpaBuilder.create(this)
422
385
  .viewId(null)
423
386
  .hasType("sap.m.CustomListItem")
424
387
  .isDialogElement()
425
- .has(function(oListItem) {
388
+ .has(function (oListItem) {
426
389
  var sToolTip = oListItem.getTooltip(); // currently we check the tooltip
427
390
  return typeof vTooltip === "string" ? sToolTip === vTooltip : vTooltip.test(sToolTip);
428
391
  })
@@ -431,7 +394,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
431
394
  .execute();
432
395
  },
433
396
 
434
- iExecutePopOverOk: function() {
397
+ iExecutePopOverOk: function () {
435
398
  return OpaBuilder.create(this)
436
399
  .viewId(null)
437
400
  .hasType("sap.m.Button")
@@ -442,26 +405,25 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
442
405
  .execute();
443
406
  },
444
407
 
445
- iExecuteSaveAndExit: function() {
408
+ iExecuteSaveAndExit: function () {
446
409
  return this.iExecuteById(/sapUiRta_exit$/, "Save&Exit");
447
410
  },
448
411
 
449
- iExecuteUndo: function() {
412
+ iExecuteUndo: function () {
450
413
  return this.iExecuteById(/sapUiRta_undo$/, "Undo");
451
414
  },
452
415
 
453
- iEnterTextForRTAEditableField: function(sNewText) {
416
+ iEnterTextForRTAEditableField: function (sNewText) {
454
417
  return OpaBuilder.create(this)
455
418
  .hasType("sap.ui.dt.ElementOverlay")
456
- .has(function(oOverlay) {
419
+ .has(function (oOverlay) {
457
420
  if (oOverlay.$().hasClass("sapUiDtOverlaySelected")) {
458
421
  var $Overlay = oOverlay.$().find(".sapUiRtaEditableField");
459
- var oEditableFieldDomNode = $Overlay.children()[0];
460
- return oEditableFieldDomNode;
422
+ return $Overlay.children()[0];
461
423
  }
462
424
  return null;
463
425
  })
464
- .do(function(oEditableFieldDomNode) {
426
+ .do(function (oEditableFieldDomNode) {
465
427
  oEditableFieldDomNode.innerHTML = sNewText;
466
428
  QUnitUtils.triggerEvent("keypress", oEditableFieldDomNode, { which: 13, keyCode: 13 });
467
429
  oEditableFieldDomNode.blur();
@@ -470,11 +432,11 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
470
432
  .execute();
471
433
  },
472
434
 
473
- iEnterTextForTitle: function(sNewText) {
435
+ iEnterTextForTitle: function (sNewText) {
474
436
  return this.iEnterTextForRTAEditableField(sNewText);
475
437
  },
476
438
 
477
- iEnterTextForViewField: function(sNewText) {
439
+ iEnterTextForViewField: function (sNewText) {
478
440
  return OpaBuilder.create(this)
479
441
  .hasType("sap.m.Input")
480
442
  .isDialogElement()
@@ -485,7 +447,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
485
447
  },
486
448
 
487
449
  assertions: {
488
- iSeeTheFLPToolbar: function() {
450
+ iSeeTheFLPToolbar: function () {
489
451
  return OpaBuilder.create(this)
490
452
  .hasType("sap.ushell.ui.ShellHeader")
491
453
  .hasId("shell-header")
@@ -493,14 +455,11 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
493
455
  .execute();
494
456
  },
495
457
 
496
- iSeeTheRTAToolbar: function() {
497
- return OpaBuilder.create(this)
498
- .hasType("sap.ui.rta.toolbar.Fiori")
499
- .description("Seeing the RTA toolbar")
500
- .execute();
458
+ iSeeTheRTAToolbar: function () {
459
+ return OpaBuilder.create(this).hasType("sap.ui.rta.toolbar.Fiori").description("Seeing the RTA toolbar").execute();
501
460
  },
502
461
 
503
- iSeeTheHeaderFacet: function(sFacetId) {
462
+ iSeeTheHeaderFacet: function (sFacetId) {
504
463
  return OpaBuilder.create(this)
505
464
  .hasType("sap.fe.templates.ObjectPage.controls.StashableHBox")
506
465
  .hasId(getHeaderFacetContainerId(sFacetId))
@@ -508,7 +467,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
508
467
  .execute();
509
468
  },
510
469
 
511
- iSeeTheFieldAddedViaRTA: function(sId) {
470
+ iSeeTheFieldAddedViaRTA: function (sId) {
512
471
  return OpaBuilder.create(this)
513
472
  .hasType("sap.ui.layout.form.FormElement")
514
473
  .hasId(getFormElementRTAId("_" + sId))
@@ -516,7 +475,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
516
475
  .execute();
517
476
  },
518
477
 
519
- iSeeTheEditableHeaderFieldAddedViaRTA: function(sId) {
478
+ iSeeTheEditableHeaderFieldAddedViaRTA: function (sId) {
520
479
  return OpaBuilder.create(this)
521
480
  .hasType("sap.ui.layout.form.FormElement")
522
481
  .hasId(new RegExp("fe::EditableHeaderForm_(.+)_" + sId + "_FormElement" + "$"))
@@ -524,7 +483,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
524
483
  .execute();
525
484
  },
526
485
 
527
- iSeeTheEditableHeaderField: function(sId) {
486
+ iSeeTheEditableHeaderField: function (sId) {
528
487
  return OpaBuilder.create(this)
529
488
  .hasType("sap.ui.layout.form.FormElement")
530
489
  .hasId(new RegExp("fe::HeaderFacet::FormContainer::" + sId + "::FormElement" + "$"))
@@ -532,13 +491,13 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
532
491
  .execute();
533
492
  },
534
493
 
535
- iDoNotSeeTheHeaderFacet: function(sFacetId) {
494
+ iDoNotSeeTheHeaderFacet: function (sFacetId) {
536
495
  var vId = getHeaderFacetContainerId(sFacetId);
537
496
 
538
497
  return OpaBuilder.create(this)
539
498
  .hasType("sap.fe.templates.ObjectPage.controls.StashableHBox")
540
- .check(function(facets) {
541
- var bFound = facets.some(function(oFacet) {
499
+ .check(function (facets) {
500
+ var bFound = facets.some(function (oFacet) {
542
501
  return typeof vId === "string" ? oFacet.getId() === vId : vId.test(oFacet.getId());
543
502
  });
544
503
  return bFound === false;
@@ -547,11 +506,11 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
547
506
  .execute();
548
507
  },
549
508
 
550
- iDoNotSeeTheField: function(sId) {
509
+ iDoNotSeeTheField: function (sId) {
551
510
  return OpaBuilder.create(this)
552
511
  .hasType("sap.ui.layout.form.FormElement")
553
- .check(function(elements) {
554
- var bFound = elements.some(function(element) {
512
+ .check(function (elements) {
513
+ var bFound = elements.some(function (element) {
555
514
  return element.getId().indexOf(sId) > -1;
556
515
  });
557
516
  return bFound === false;
@@ -560,7 +519,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
560
519
  .execute();
561
520
  },
562
521
 
563
- iSeeTheElementOverlayById: function(vId, sDescription, bCheckParent) {
522
+ iSeeTheElementOverlayById: function (vId, sDescription, bCheckParent) {
564
523
  var fnHasReferencedControlId = generateHasReferencedControlIdMatcher(vId, bCheckParent);
565
524
 
566
525
  return OpaBuilder.create(this)
@@ -570,12 +529,12 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
570
529
  .execute();
571
530
  },
572
531
 
573
- iDoNotSeeTheElementOverlayById: function(vId, sDescription, bCheckParent) {
532
+ iDoNotSeeTheElementOverlayById: function (vId, sDescription, bCheckParent) {
574
533
  var fnHasReferencedControlId = generateHasReferencedControlIdMatcher(vId, bCheckParent);
575
534
 
576
535
  return OpaBuilder.create(this)
577
536
  .hasType("sap.ui.dt.ElementOverlay")
578
- .check(function(oOverlay) {
537
+ .check(function (oOverlay) {
579
538
  var bFound = oOverlay.some(fnHasReferencedControlId);
580
539
  return bFound === false;
581
540
  }, true)
@@ -583,18 +542,15 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
583
542
  .execute();
584
543
  },
585
544
 
586
- iSeeTheElementOverlayForTheApp: function() {
545
+ iSeeTheElementOverlayForTheApp: function () {
587
546
  return this.iSeeTheElementOverlayById(/component---appRootView--appContent$/, "Seeing the ElementOverlay for the App");
588
547
  },
589
548
 
590
- iSeeThePopover: function() {
591
- return OpaBuilder.create(this)
592
- .hasType("sap.ui.unified.Menu")
593
- .description("Seeing the Popover")
594
- .execute();
549
+ iSeeThePopover: function () {
550
+ return OpaBuilder.create(this).hasType("sap.ui.unified.Menu").description("Seeing the Popover").execute();
595
551
  },
596
552
 
597
- iSeeTheButtonByIcon: function(sIcon, sDescription) {
553
+ iSeeTheButtonByIcon: function (sIcon, sDescription) {
598
554
  return OpaBuilder.create(this)
599
555
  .hasType("sap.m.Button")
600
556
  .isDialogElement()
@@ -603,7 +559,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
603
559
  .execute();
604
560
  },
605
561
 
606
- iSeeTheMenuItemByIcon: function(sIcon, sDescription) {
562
+ iSeeTheMenuItemByIcon: function (sIcon, sDescription) {
607
563
  return OpaBuilder.create(this)
608
564
  .hasType("sap.ui.unified.MenuItem")
609
565
  .isDialogElement()
@@ -612,12 +568,12 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
612
568
  .execute();
613
569
  },
614
570
 
615
- iDoNotSeeTheButtonByIcon: function(sIcon, sDescription) {
571
+ iDoNotSeeTheButtonByIcon: function (sIcon, sDescription) {
616
572
  return OpaBuilder.create(this)
617
573
  .hasType("sap.m.Button")
618
574
  .isDialogElement()
619
- .check(function(aButtons) {
620
- var bFound = aButtons.some(function(oButton) {
575
+ .check(function (aButtons) {
576
+ var bFound = aButtons.some(function (oButton) {
621
577
  return oButton.getProperty("icon") === sIcon;
622
578
  });
623
579
  return bFound === false;
@@ -626,12 +582,12 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
626
582
  .execute();
627
583
  },
628
584
 
629
- iDoNotSeeTheMenuItemByIcon: function(sIcon, sDescription) {
585
+ iDoNotSeeTheMenuItemByIcon: function (sIcon, sDescription) {
630
586
  return OpaBuilder.create(this)
631
587
  .hasType("sap.ui.unified.MenuItem")
632
588
  .isDialogElement()
633
- .check(function(aButtons) {
634
- var bFound = aButtons.some(function(oButton) {
589
+ .check(function (aButtons) {
590
+ var bFound = aButtons.some(function (oButton) {
635
591
  return oButton.getProperty("icon") === sIcon;
636
592
  });
637
593
  return bFound === false;
@@ -640,46 +596,43 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
640
596
  .execute();
641
597
  },
642
598
 
643
- iSeeTheVariantManagementPopover: function() {
599
+ iSeeTheVariantManagementPopover: function () {
644
600
  return this.iSeeTheMenuItemByIcon("sap-icon://duplicate", "The Popover");
645
601
  },
646
602
 
647
- iSeeTheRTAPopover: function() {
603
+ iSeeTheRTAPopover: function () {
648
604
  return this.iSeeTheMenuItemByIcon("sap-icon://key-user-settings", "The RTAPopover");
649
605
  },
650
606
 
651
- iSeeTheRenameButton: function() {
607
+ iSeeTheRenameButton: function () {
652
608
  return this.iSeeTheMenuItemByIcon("sap-icon://edit", "the button 'rename'");
653
609
  },
654
610
 
655
- iSeeTheAddButton: function() {
611
+ iSeeTheAddButton: function () {
656
612
  return this.iSeeTheMenuItemByIcon("sap-icon://add", "the button 'add'");
657
613
  },
658
614
 
659
- iSeeTheCreateGroupButton: function() {
615
+ iSeeTheCreateGroupButton: function () {
660
616
  return this.iSeeTheMenuItemByIcon("sap-icon://add-folder", "the button 'create group'");
661
617
  },
662
618
 
663
- iDoNotSeeTheRenameButton: function() {
619
+ iDoNotSeeTheRenameButton: function () {
664
620
  return this.iDoNotSeeTheMenuItemByIcon("sap-icon://edit", "the button 'rename'");
665
621
  },
666
622
 
667
- iDoNotSeeTheAddButton: function() {
623
+ iDoNotSeeTheAddButton: function () {
668
624
  return this.iDoNotSeeTheMenuItemByIcon("sap-icon://add", "the button 'add'");
669
625
  },
670
626
 
671
- iDoNotSeeTheRemoveButton: function() {
627
+ iDoNotSeeTheRemoveButton: function () {
672
628
  return this.iDoNotSeeTheMenuItemByIcon("sap-icon://less", "the button 'remove'");
673
629
  },
674
630
 
675
- iSeeThePopoverDialog: function() {
676
- return OpaBuilder.create(this)
677
- .hasType("sap.m.Dialog")
678
- .description("Seeing the Popover Dialog")
679
- .execute();
631
+ iSeeThePopoverDialog: function () {
632
+ return OpaBuilder.create(this).hasType("sap.m.Dialog").description("Seeing the Popover Dialog").execute();
680
633
  },
681
634
 
682
- iSeeThePopoverDialogWithId: function(sId) {
635
+ iSeeThePopoverDialogWithId: function (sId) {
683
636
  return OpaBuilder.create(this)
684
637
  .hasType("sap.m.Dialog")
685
638
  .hasId(sId)
@@ -687,11 +640,11 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
687
640
  .execute();
688
641
  },
689
642
 
690
- iSeeTheHeaderFacetOverlay: function(sFacetId) {
643
+ iSeeTheHeaderFacetOverlay: function (sFacetId) {
691
644
  return this.iSeeTheElementOverlayById(getHeaderFacetContainerId(sFacetId), "Seeing the Header Facet: " + sFacetId, true);
692
645
  },
693
646
 
694
- iDoNotSeeTheHeaderFacetOverlay: function(sFacetId) {
647
+ iDoNotSeeTheHeaderFacetOverlay: function (sFacetId) {
695
648
  return this.iDoNotSeeTheElementOverlayById(
696
649
  getHeaderFacetContainerId(sFacetId),
697
650
  "Not seeing the Header Facet Overlay: " + sFacetId,
@@ -699,7 +652,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
699
652
  );
700
653
  },
701
654
 
702
- iSeeTheTitleOnTheUI: function(sText) {
655
+ iSeeTheTitleOnTheUI: function (sText) {
703
656
  // Rename HeaderFacet seems to be locally more stable without .checkNumberOfMatches(1)
704
657
  return OpaBuilder.create(this)
705
658
  .hasType("sap.m.Title")
@@ -708,7 +661,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
708
661
  .execute();
709
662
  },
710
663
 
711
- iSeeTheLinkOnTheUI: function(sText) {
664
+ iSeeTheLinkOnTheUI: function (sText) {
712
665
  return OpaBuilder.create(this)
713
666
  .hasType("sap.m.Link")
714
667
  .hasProperties({ text: sText })
@@ -717,7 +670,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
717
670
  .execute();
718
671
  },
719
672
 
720
- iCheckTheHeaderFacetTitle: function(sFacetId, sText) {
673
+ iCheckTheHeaderFacetTitle: function (sFacetId, sText) {
721
674
  return OpaBuilder.create(this)
722
675
  .hasType("sap.fe.templates.ObjectPage.controls.StashableHBox")
723
676
  .hasId(getHeaderFacetContainerId(sFacetId))
@@ -726,7 +679,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
726
679
  .execute();
727
680
  },
728
681
 
729
- iSeeTheSectionTextById: function(sId, sText) {
682
+ iSeeTheSectionTextById: function (sId, sText) {
730
683
  var vId = getSectionId(sId);
731
684
 
732
685
  return OpaBuilder.create(this)
@@ -736,15 +689,15 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
736
689
  .execute();
737
690
  },
738
691
 
739
- iSeeTheSectionAtPosition: function(sId, iPosition) {
692
+ iSeeTheSectionAtPosition: function (sId, iPosition) {
740
693
  var vId = getSectionId(sId);
741
694
 
742
695
  return OpaBuilder.create(this)
743
696
  .hasType("sap.m.Button") // (not for HeaderInfo which is of type sap.m.MenuButton)
744
697
  .hasId(vId)
745
- .has(function(oElement) {
698
+ .has(function (oElement) {
746
699
  var aContent = oElement.getParent().getContent(), // anchBar content
747
- iFound = aContent.findIndex(function(oSection) {
700
+ iFound = aContent.findIndex(function (oSection) {
748
701
  return vId.test(oSection.getId());
749
702
  });
750
703
 
@@ -754,7 +707,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
754
707
  .execute();
755
708
  },
756
709
 
757
- iSeeTheAddedIFrameInHeader: function(sUrlWithContentForIFrame) {
710
+ iSeeTheAddedIFrameInHeader: function (sUrlWithContentForIFrame) {
758
711
  return OpaBuilder.create(this)
759
712
  .hasType("sap.ui.dt.AggregationOverlay")
760
713
  .hasProperties({ aggregationName: "headerContent" })
@@ -763,7 +716,7 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
763
716
  .execute();
764
717
  },
765
718
 
766
- iSeeTheIFrameInSectionWithTitle: function(sSectionTitle) {
719
+ iSeeTheIFrameInSectionWithTitle: function (sSectionTitle) {
767
720
  return OpaBuilder.create(this)
768
721
  .hasType("sap.uxap.ObjectPageSection")
769
722
  .hasProperties({ title: sSectionTitle })