@sapui5/sap.fe.test 1.98.0 → 1.101.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.
- package/package.json +6 -3
- package/src/sap/fe/test/.library +1 -1
- package/src/sap/fe/test/BaseActions.js +3 -2
- package/src/sap/fe/test/BaseArrangements.js +68 -20
- package/src/sap/fe/test/BaseAssertions.js +3 -2
- package/src/sap/fe/test/ConfirmDialog.js +3 -2
- package/src/sap/fe/test/FCLView.js +3 -2
- package/src/sap/fe/test/FeMocks.js +66 -0
- package/src/sap/fe/test/FeMocks.ts +77 -0
- package/src/sap/fe/test/Flexibility.js +3 -2
- package/src/sap/fe/test/FlexibleColumnLayout.js +151 -143
- package/src/sap/fe/test/JestTemplatingHelper.js +96 -35
- package/src/sap/fe/test/JestTemplatingHelper.ts +115 -66
- package/src/sap/fe/test/JourneyRunner.js +3 -2
- package/src/sap/fe/test/ListReport.js +74 -70
- package/src/sap/fe/test/LocationUtil.js +3 -2
- package/src/sap/fe/test/ObjectPage.js +88 -125
- package/src/sap/fe/test/Shell.js +3 -2
- package/src/sap/fe/test/Stubs.js +3 -2
- package/src/sap/fe/test/TemplatePage.js +46 -29
- package/src/sap/fe/test/TemplatingTestUtils.js +3 -2
- package/src/sap/fe/test/UI5MockHelper.js +163 -217
- package/src/sap/fe/test/UI5MockHelper.ts +45 -10
- package/src/sap/fe/test/Utils.js +3 -2
- package/src/sap/fe/test/api/APIHelper.js +29 -17
- package/src/sap/fe/test/api/BaseAPI.js +4 -2
- package/src/sap/fe/test/api/ChartActions.js +3 -2
- package/src/sap/fe/test/api/ChartAssertions.js +3 -2
- package/src/sap/fe/test/api/DialogAPI.js +17 -4
- package/src/sap/fe/test/api/DialogActions.js +6 -3
- package/src/sap/fe/test/api/DialogAssertions.js +3 -2
- package/src/sap/fe/test/api/DialogCreateActions.js +4 -3
- package/src/sap/fe/test/api/DialogCreateAssertions.js +4 -3
- package/src/sap/fe/test/api/DialogMessageActions.js +82 -52
- package/src/sap/fe/test/api/DialogMessageAssertions.js +4 -3
- package/src/sap/fe/test/api/DialogType.js +3 -2
- package/src/sap/fe/test/api/DialogValueHelpActions.js +4 -3
- package/src/sap/fe/test/api/DialogValueHelpAssertions.js +4 -3
- package/src/sap/fe/test/api/EditState.js +3 -2
- package/src/sap/fe/test/api/FilterBarAPI.js +12 -3
- package/src/sap/fe/test/api/FilterBarActions.js +3 -2
- package/src/sap/fe/test/api/FilterBarAssertions.js +3 -2
- package/src/sap/fe/test/api/FooterAPI.js +3 -2
- package/src/sap/fe/test/api/FooterActionsBase.js +3 -2
- package/src/sap/fe/test/api/FooterActionsOP.js +3 -2
- package/src/sap/fe/test/api/FooterAssertionsBase.js +3 -2
- package/src/sap/fe/test/api/FooterAssertionsOP.js +3 -2
- package/src/sap/fe/test/api/FormAPI.js +3 -2
- package/src/sap/fe/test/api/FormActions.js +3 -2
- package/src/sap/fe/test/api/FormAssertions.js +3 -2
- package/src/sap/fe/test/api/HeaderAPI.js +3 -2
- package/src/sap/fe/test/api/HeaderActions.js +232 -228
- package/src/sap/fe/test/api/HeaderActionsLR.js +3 -2
- package/src/sap/fe/test/api/HeaderAssertions.js +3 -2
- package/src/sap/fe/test/api/HeaderAssertionsLR.js +3 -2
- package/src/sap/fe/test/api/HeaderLR.js +3 -2
- package/src/sap/fe/test/api/KPICardAPI.js +3 -2
- package/src/sap/fe/test/api/KPICardActions.js +3 -2
- package/src/sap/fe/test/api/KPICardAssertions.js +3 -2
- package/src/sap/fe/test/api/TableAPI.js +3 -2
- package/src/sap/fe/test/api/TableActions.js +60 -90
- package/src/sap/fe/test/api/TableAssertions.js +6 -6
- package/src/sap/fe/test/builder/DialogBuilder.js +3 -2
- package/src/sap/fe/test/builder/FEBuilder.js +3 -2
- package/src/sap/fe/test/builder/KPIBuilder.js +3 -2
- package/src/sap/fe/test/builder/MacroFieldBuilder.js +6 -2
- package/src/sap/fe/test/builder/MdcFieldBuilder.js +3 -2
- package/src/sap/fe/test/builder/MdcFilterBarBuilder.js +3 -2
- package/src/sap/fe/test/builder/MdcFilterFieldBuilder.js +3 -2
- package/src/sap/fe/test/builder/MdcTableBuilder.js +166 -182
- package/src/sap/fe/test/builder/OverflowToolbarBuilder.js +3 -2
- package/src/sap/fe/test/builder/VMBuilder.js +3 -2
- package/src/sap/fe/test/internal/FEArrangements.js +3 -2
- package/src/sap/fe/test/internal/FEJourneyRunner.js +9 -5
- package/src/sap/fe/test/library.js +26 -34
- package/src/sap/fe/test/library.ts +28 -0
- package/src/sap/fe/test/massEdit.js +3 -2
- package/ui5.yaml +0 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
(c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
|
+
|
|
4
5
|
*/
|
|
5
6
|
sap.ui.define(
|
|
6
7
|
[
|
|
@@ -20,7 +21,7 @@ sap.ui.define(
|
|
|
20
21
|
"sap/fe/test/api/KPICardAssertions",
|
|
21
22
|
"sap/fe/test/api/KPICardActions"
|
|
22
23
|
],
|
|
23
|
-
function(
|
|
24
|
+
function (
|
|
24
25
|
Utils,
|
|
25
26
|
TemplatePage,
|
|
26
27
|
Opa5,
|
|
@@ -109,7 +110,7 @@ sap.ui.define(
|
|
|
109
110
|
* @name sap.fe.test.ListReport.actions#onTable
|
|
110
111
|
* @public
|
|
111
112
|
*/
|
|
112
|
-
onTable: function(vTableIdentifier) {
|
|
113
|
+
onTable: function (vTableIdentifier) {
|
|
113
114
|
var sTableId;
|
|
114
115
|
if (vTableIdentifier) {
|
|
115
116
|
sTableId = !Utils.isOfType(vTableIdentifier, String)
|
|
@@ -120,7 +121,7 @@ sap.ui.define(
|
|
|
120
121
|
}
|
|
121
122
|
return this._onTable({ id: sTableId });
|
|
122
123
|
},
|
|
123
|
-
onChart: function(vChartIdentifier) {
|
|
124
|
+
onChart: function (vChartIdentifier) {
|
|
124
125
|
var sChartId;
|
|
125
126
|
if (vChartIdentifier) {
|
|
126
127
|
sChartId = !Utils.isOfType(vChartIdentifier, String)
|
|
@@ -133,7 +134,7 @@ sap.ui.define(
|
|
|
133
134
|
id: sChartId
|
|
134
135
|
});
|
|
135
136
|
},
|
|
136
|
-
onKPICard: function() {
|
|
137
|
+
onKPICard: function () {
|
|
137
138
|
return new KPICardActions(KPIBuilder.create(this));
|
|
138
139
|
},
|
|
139
140
|
/**
|
|
@@ -144,7 +145,7 @@ sap.ui.define(
|
|
|
144
145
|
* @alias sap.fe.test.ListReport.actions#onFilterBar
|
|
145
146
|
* @public
|
|
146
147
|
*/
|
|
147
|
-
onFilterBar: function() {
|
|
148
|
+
onFilterBar: function () {
|
|
148
149
|
return this._onFilterBar({ id: FilterBarId });
|
|
149
150
|
},
|
|
150
151
|
/**
|
|
@@ -155,7 +156,7 @@ sap.ui.define(
|
|
|
155
156
|
* @alias sap.fe.test.ListReport.actions#onHeader
|
|
156
157
|
* @public
|
|
157
158
|
*/
|
|
158
|
-
onHeader: function() {
|
|
159
|
+
onHeader: function () {
|
|
159
160
|
return new HeaderActionsLR(_getHeaderBuilder(this, PageId), { id: PageId });
|
|
160
161
|
},
|
|
161
162
|
/**
|
|
@@ -168,10 +169,10 @@ sap.ui.define(
|
|
|
168
169
|
* @name sap.fe.test.ListReport.actions#iCollapseExpandPageHeader
|
|
169
170
|
* @public
|
|
170
171
|
*/
|
|
171
|
-
iCollapseExpandPageHeader: function(bCollapse) {
|
|
172
|
+
iCollapseExpandPageHeader: function (bCollapse) {
|
|
172
173
|
return this._iCollapseExpandPageHeader(bCollapse);
|
|
173
174
|
},
|
|
174
|
-
iExecuteActionOnDialog: function(sText) {
|
|
175
|
+
iExecuteActionOnDialog: function (sText) {
|
|
175
176
|
return OpaBuilder.create(this)
|
|
176
177
|
.hasType("sap.m.Button")
|
|
177
178
|
.hasProperties({ text: sText })
|
|
@@ -180,7 +181,7 @@ sap.ui.define(
|
|
|
180
181
|
.description("Pressing dialog button '" + sText + "'")
|
|
181
182
|
.execute();
|
|
182
183
|
},
|
|
183
|
-
iClickLinkWithText: function(sText) {
|
|
184
|
+
iClickLinkWithText: function (sText) {
|
|
184
185
|
return OpaBuilder.create(this)
|
|
185
186
|
.hasType("sap.m.Link")
|
|
186
187
|
.hasProperties({ text: sText })
|
|
@@ -188,7 +189,7 @@ sap.ui.define(
|
|
|
188
189
|
.description("Navigating via link '" + sText + "'")
|
|
189
190
|
.execute();
|
|
190
191
|
},
|
|
191
|
-
iOpenIconTabWithTitle: function(sName) {
|
|
192
|
+
iOpenIconTabWithTitle: function (sName) {
|
|
192
193
|
return OpaBuilder.create(this)
|
|
193
194
|
.hasId(IconTabBarId)
|
|
194
195
|
.has(OpaBuilder.Matchers.aggregation("items", OpaBuilder.Matchers.properties({ text: sName })))
|
|
@@ -196,7 +197,7 @@ sap.ui.define(
|
|
|
196
197
|
.description("Selecting Icon Tab " + sName)
|
|
197
198
|
.execute();
|
|
198
199
|
},
|
|
199
|
-
iSaveVariant: function(sVariantName, bSetAsDefault, bApplyAutomatically) {
|
|
200
|
+
iSaveVariant: function (sVariantName, bSetAsDefault, bApplyAutomatically) {
|
|
200
201
|
var aArguments = Utils.parseArguments([String, Boolean, Boolean], arguments),
|
|
201
202
|
oVMBuilder = VMBuilder.create(this).hasId("fe::PageVariantManagement");
|
|
202
203
|
|
|
@@ -219,14 +220,14 @@ sap.ui.define(
|
|
|
219
220
|
}
|
|
220
221
|
return oVMBuilder.execute();
|
|
221
222
|
},
|
|
222
|
-
iSelectVariant: function(sVariantName) {
|
|
223
|
+
iSelectVariant: function (sVariantName) {
|
|
223
224
|
return VMBuilder.create(this)
|
|
224
225
|
.hasId("fe::PageVariantManagement")
|
|
225
226
|
.doSelectVariant(sVariantName)
|
|
226
227
|
.description(Utils.formatMessage("Selecting variant '{1}' from '{0}'", "Page Variant", sVariantName))
|
|
227
228
|
.execute();
|
|
228
229
|
},
|
|
229
|
-
iOpenKPICard: function(sTitle) {
|
|
230
|
+
iOpenKPICard: function (sTitle) {
|
|
230
231
|
return KPIBuilder.create(this)
|
|
231
232
|
.clickKPITag(sTitle)
|
|
232
233
|
.description("Opening card for KPI '" + sTitle + "'")
|
|
@@ -250,7 +251,7 @@ sap.ui.define(
|
|
|
250
251
|
* @alias sap.fe.test.ListReport.assertions#onTable
|
|
251
252
|
* @public
|
|
252
253
|
*/
|
|
253
|
-
onTable: function(vTableIdentifier) {
|
|
254
|
+
onTable: function (vTableIdentifier) {
|
|
254
255
|
if (!vTableIdentifier) {
|
|
255
256
|
vTableIdentifier = { id: SingleTableId };
|
|
256
257
|
} else {
|
|
@@ -262,7 +263,7 @@ sap.ui.define(
|
|
|
262
263
|
|
|
263
264
|
return this._onTable(vTableIdentifier);
|
|
264
265
|
},
|
|
265
|
-
onChart: function(vChartIdentifier) {
|
|
266
|
+
onChart: function (vChartIdentifier) {
|
|
266
267
|
var sChartId;
|
|
267
268
|
if (vChartIdentifier) {
|
|
268
269
|
sChartId = !Utils.isOfType(vChartIdentifier, String)
|
|
@@ -283,7 +284,7 @@ sap.ui.define(
|
|
|
283
284
|
* @alias sap.fe.test.ListReport.assertions#onFilterBar
|
|
284
285
|
* @public
|
|
285
286
|
*/
|
|
286
|
-
onFilterBar: function() {
|
|
287
|
+
onFilterBar: function () {
|
|
287
288
|
return this._onFilterBar({ id: FilterBarId });
|
|
288
289
|
},
|
|
289
290
|
/**
|
|
@@ -294,20 +295,20 @@ sap.ui.define(
|
|
|
294
295
|
* @alias sap.fe.test.ListReport.assertions#onHeader
|
|
295
296
|
* @public
|
|
296
297
|
*/
|
|
297
|
-
onHeader: function() {
|
|
298
|
+
onHeader: function () {
|
|
298
299
|
return new HeaderAssertionsLR(_getHeaderBuilder(this, PageId), { id: PageId });
|
|
299
300
|
},
|
|
300
|
-
onKPICard: function() {
|
|
301
|
+
onKPICard: function () {
|
|
301
302
|
return new KPICardAssertions(KPIBuilder.create(this));
|
|
302
303
|
},
|
|
303
|
-
iSeeTheMessageToast: function(sText) {
|
|
304
|
+
iSeeTheMessageToast: function (sText) {
|
|
304
305
|
return this._iSeeTheMessageToast(sText);
|
|
305
306
|
},
|
|
306
|
-
iSeeFilterFieldsInFilterBar: function(iNumberOfFilterFields, bIsVisualFilterLayout) {
|
|
307
|
+
iSeeFilterFieldsInFilterBar: function (iNumberOfFilterFields, bIsVisualFilterLayout) {
|
|
307
308
|
if (bIsVisualFilterLayout) {
|
|
308
309
|
return OpaBuilder.create(this)
|
|
309
310
|
.hasId(FilterBarId)
|
|
310
|
-
.check(function(oControl) {
|
|
311
|
+
.check(function (oControl) {
|
|
311
312
|
return (
|
|
312
313
|
oControl
|
|
313
314
|
.getAggregation("layout")
|
|
@@ -324,11 +325,11 @@ sap.ui.define(
|
|
|
324
325
|
.description("Seeing filter bar with " + iNumberOfFilterFields + " filter fields")
|
|
325
326
|
.execute();
|
|
326
327
|
},
|
|
327
|
-
iSeeTableCellWithActions: function(sPath, nCellPos, sButtonText) {
|
|
328
|
+
iSeeTableCellWithActions: function (sPath, nCellPos, sButtonText) {
|
|
328
329
|
return OpaBuilder.create(this)
|
|
329
330
|
.hasType("sap.m.ColumnListItem")
|
|
330
331
|
.has(OpaBuilder.Matchers.bindingPath(sPath))
|
|
331
|
-
.has(function(row) {
|
|
332
|
+
.has(function (row) {
|
|
332
333
|
var cell = row.getCells()[nCellPos];
|
|
333
334
|
if (cell.isA("sap.fe.macros.MacroAPI")) {
|
|
334
335
|
cell = cell.getContent();
|
|
@@ -338,14 +339,14 @@ sap.ui.define(
|
|
|
338
339
|
.description("Inline Action is present in the table cell with the Text " + sButtonText)
|
|
339
340
|
.execute();
|
|
340
341
|
},
|
|
341
|
-
iSeeLinkWithText: function(sText) {
|
|
342
|
+
iSeeLinkWithText: function (sText) {
|
|
342
343
|
return OpaBuilder.create(this)
|
|
343
344
|
.hasType("sap.m.Link")
|
|
344
345
|
.hasProperties({ text: sText })
|
|
345
346
|
.description("Seeing link with text '" + sText + "'")
|
|
346
347
|
.execute();
|
|
347
348
|
},
|
|
348
|
-
iSeeQuickViewMoreLinksButton: function() {
|
|
349
|
+
iSeeQuickViewMoreLinksButton: function () {
|
|
349
350
|
return OpaBuilder.create(this)
|
|
350
351
|
.isDialogElement(true)
|
|
351
352
|
.hasType("sap.m.Button")
|
|
@@ -353,7 +354,7 @@ sap.ui.define(
|
|
|
353
354
|
.description("The 'More Links' button found")
|
|
354
355
|
.execute();
|
|
355
356
|
},
|
|
356
|
-
iSeeFlpLink: function(sDescription) {
|
|
357
|
+
iSeeFlpLink: function (sDescription) {
|
|
357
358
|
return OpaBuilder.create(this)
|
|
358
359
|
.hasType("sap.m.Link")
|
|
359
360
|
.isDialogElement(true)
|
|
@@ -361,7 +362,7 @@ sap.ui.define(
|
|
|
361
362
|
.description("FLP link with text '" + sDescription + "' is present")
|
|
362
363
|
.execute();
|
|
363
364
|
},
|
|
364
|
-
iSeeHeaderPinnableToggle: function(bVisible) {
|
|
365
|
+
iSeeHeaderPinnableToggle: function (bVisible) {
|
|
365
366
|
var sState = bVisible ? "visible" : "hidden";
|
|
366
367
|
return OpaBuilder.create(this)
|
|
367
368
|
.hasType("sap.f.DynamicPageHeader")
|
|
@@ -369,11 +370,11 @@ sap.ui.define(
|
|
|
369
370
|
.description("The Page Header Pinnable Toggle is " + sState)
|
|
370
371
|
.execute();
|
|
371
372
|
},
|
|
372
|
-
iSeeContactPopoverWithAvatarImage: function(sImageSource) {
|
|
373
|
+
iSeeContactPopoverWithAvatarImage: function (sImageSource) {
|
|
373
374
|
return OpaBuilder.create(this)
|
|
374
375
|
.hasType("sap.ui.mdc.link.Panel")
|
|
375
|
-
.check(function(avatars) {
|
|
376
|
-
var bFound = avatars.some(function(avatar) {
|
|
376
|
+
.check(function (avatars) {
|
|
377
|
+
var bFound = avatars.some(function (avatar) {
|
|
377
378
|
return avatar.src === sImageSource;
|
|
378
379
|
});
|
|
379
380
|
return bFound === false;
|
|
@@ -381,55 +382,64 @@ sap.ui.define(
|
|
|
381
382
|
.description("Seeing Contact Card with Avatar Image in ListReport")
|
|
382
383
|
.execute();
|
|
383
384
|
},
|
|
384
|
-
|
|
385
|
+
iSeeQuickViewPopover: function () {
|
|
386
|
+
return OpaBuilder.create(this)
|
|
387
|
+
.hasType("sap.ui.mdc.link.Panel")
|
|
388
|
+
.description("Seeing Quick View Popover")
|
|
389
|
+
.execute();
|
|
390
|
+
},
|
|
391
|
+
iSeeAvatarImage: function (sImageSource) {
|
|
392
|
+
return OpaBuilder.create(this)
|
|
393
|
+
.hasType("sap.m.Avatar")
|
|
394
|
+
.hasProperties({ src: sImageSource })
|
|
395
|
+
.description("Seeing avatar image with url '" + sImageSource + "'")
|
|
396
|
+
.execute();
|
|
397
|
+
},
|
|
398
|
+
iSeeLabelWithText: function (sText) {
|
|
385
399
|
return OpaBuilder.create(this)
|
|
386
400
|
.hasType("sap.m.Label")
|
|
387
401
|
.hasProperties({ text: sText })
|
|
388
|
-
.description("
|
|
402
|
+
.description("Seeing label with text '" + sText + "'")
|
|
389
403
|
.execute();
|
|
390
404
|
},
|
|
391
|
-
|
|
405
|
+
iSeeTitleInQuickViewForm: function (sText) {
|
|
392
406
|
return OpaBuilder.create(this)
|
|
393
|
-
.hasType("sap.ui.
|
|
394
|
-
.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
});
|
|
398
|
-
return bFound === false;
|
|
399
|
-
}, true)
|
|
400
|
-
.description("Seeing QuickView with Title in ListReport")
|
|
407
|
+
.hasType("sap.ui.core.Title")
|
|
408
|
+
.isDialogElement(true)
|
|
409
|
+
.hasProperties({ text: sText })
|
|
410
|
+
.description("Seeing title with text '" + sText + "'")
|
|
401
411
|
.execute();
|
|
402
412
|
},
|
|
403
|
-
iSeeSummaryOfAppliedFilters: function() {
|
|
413
|
+
iSeeSummaryOfAppliedFilters: function () {
|
|
404
414
|
var sAppliedFilters;
|
|
405
415
|
OpaBuilder.create(this)
|
|
406
416
|
.hasId(FilterBarId)
|
|
407
417
|
.mustBeVisible(false)
|
|
408
|
-
.do(function(oFilterbar) {
|
|
418
|
+
.do(function (oFilterbar) {
|
|
409
419
|
sAppliedFilters = oFilterbar.getAssignedFiltersText().filtersText;
|
|
410
420
|
})
|
|
411
421
|
.execute();
|
|
412
422
|
return OpaBuilder.create(this)
|
|
413
423
|
.hasType("sap.f.DynamicPageTitle")
|
|
414
|
-
.has(function(oDynamicPageTitle) {
|
|
424
|
+
.has(function (oDynamicPageTitle) {
|
|
415
425
|
return oDynamicPageTitle.getSnappedContent()[0].getText() === sAppliedFilters;
|
|
416
426
|
})
|
|
417
427
|
.description("The correct text on the collapsed filterbar is displayed")
|
|
418
428
|
.execute();
|
|
419
429
|
},
|
|
420
|
-
iSeeDeleteConfirmation: function() {
|
|
430
|
+
iSeeDeleteConfirmation: function () {
|
|
421
431
|
return this._iSeeTheMessageToast(
|
|
422
432
|
oResourceBundleCore.getText("C_TRANSACTION_HELPER_OBJECT_PAGE_DELETE_TOAST_SINGULAR")
|
|
423
433
|
);
|
|
424
434
|
},
|
|
425
|
-
iSeePageTitle: function(sTitle) {
|
|
435
|
+
iSeePageTitle: function (sTitle) {
|
|
426
436
|
return OpaBuilder.create(this)
|
|
427
437
|
.hasType("sap.f.DynamicPageTitle")
|
|
428
438
|
.hasAggregationProperties("heading", { text: sTitle })
|
|
429
439
|
.description("Seeing title '" + sTitle + "'")
|
|
430
440
|
.execute();
|
|
431
441
|
},
|
|
432
|
-
iSeeVariantTitle: function(sTitle) {
|
|
442
|
+
iSeeVariantTitle: function (sTitle) {
|
|
433
443
|
return OpaBuilder.create(this)
|
|
434
444
|
.hasType("sap.m.Title")
|
|
435
445
|
.hasId("fe::PageVariantManagement-text")
|
|
@@ -437,7 +447,7 @@ sap.ui.define(
|
|
|
437
447
|
.description("Seeing variant title '" + sTitle + "'")
|
|
438
448
|
.execute();
|
|
439
449
|
},
|
|
440
|
-
iSeeControlVMFilterBarTitle: function(sTitle) {
|
|
450
|
+
iSeeControlVMFilterBarTitle: function (sTitle) {
|
|
441
451
|
return OpaBuilder.create(this)
|
|
442
452
|
.hasType("sap.m.Title")
|
|
443
453
|
.hasId(FilterBarId + "::VariantManagement-text")
|
|
@@ -445,7 +455,7 @@ sap.ui.define(
|
|
|
445
455
|
.description("Seeing variant title '" + sTitle + "'")
|
|
446
456
|
.execute();
|
|
447
457
|
},
|
|
448
|
-
iSeeControlVMTableTitle: function(sTitle, sIconTabProperty) {
|
|
458
|
+
iSeeControlVMTableTitle: function (sTitle, sIconTabProperty) {
|
|
449
459
|
var sTableId = sIconTabProperty ? getTableId(sIconTabProperty) : SingleTableId;
|
|
450
460
|
return OpaBuilder.create(this)
|
|
451
461
|
.hasType("sap.m.Title")
|
|
@@ -454,7 +464,7 @@ sap.ui.define(
|
|
|
454
464
|
.description("Seeing variant title '" + sTitle + "'")
|
|
455
465
|
.execute();
|
|
456
466
|
},
|
|
457
|
-
iSeeVariantModified: function(bIsModified, bControl) {
|
|
467
|
+
iSeeVariantModified: function (bIsModified, bControl) {
|
|
458
468
|
var sLabelId;
|
|
459
469
|
if (bControl) {
|
|
460
470
|
sLabelId = FilterBarId + "::VariantManagement-modified";
|
|
@@ -473,8 +483,8 @@ sap.ui.define(
|
|
|
473
483
|
} else {
|
|
474
484
|
return OpaBuilder.create(this)
|
|
475
485
|
.hasType("sap.m.Label")
|
|
476
|
-
.check(function(oLabels) {
|
|
477
|
-
return !oLabels.some(function(oLabel) {
|
|
486
|
+
.check(function (oLabels) {
|
|
487
|
+
return !oLabels.some(function (oLabel) {
|
|
478
488
|
return oLabel.getId() === sLabelId;
|
|
479
489
|
});
|
|
480
490
|
}, true)
|
|
@@ -482,20 +492,20 @@ sap.ui.define(
|
|
|
482
492
|
.execute();
|
|
483
493
|
}
|
|
484
494
|
},
|
|
485
|
-
iSeePageVM: function(mState) {
|
|
495
|
+
iSeePageVM: function (mState) {
|
|
486
496
|
return FEBuilder.create(this)
|
|
487
497
|
.hasId("fe::PageVariantManagement")
|
|
488
498
|
.hasState(mState)
|
|
489
499
|
.description(Utils.formatMessage("Seeing page VM with state '{0}'", mState))
|
|
490
500
|
.execute();
|
|
491
501
|
},
|
|
492
|
-
iSeeControlVMFilterBar: function() {
|
|
502
|
+
iSeeControlVMFilterBar: function () {
|
|
493
503
|
return OpaBuilder.create(this)
|
|
494
504
|
.hasId(FilterBarId + "::VariantManagement")
|
|
495
505
|
.description("Seeing control VM - FilterBar")
|
|
496
506
|
.execute();
|
|
497
507
|
},
|
|
498
|
-
iSeeDraftIndicator: function() {
|
|
508
|
+
iSeeDraftIndicator: function () {
|
|
499
509
|
return OpaBuilder.create(this)
|
|
500
510
|
.hasType("sap.m.Link")
|
|
501
511
|
.hasProperties({
|
|
@@ -504,7 +514,7 @@ sap.ui.define(
|
|
|
504
514
|
.description("Draft indicator is visible")
|
|
505
515
|
.execute();
|
|
506
516
|
},
|
|
507
|
-
iSeeDraftIndicatorLocked: function(user) {
|
|
517
|
+
iSeeDraftIndicatorLocked: function (user) {
|
|
508
518
|
var text = oResourceBundleCore.getText(
|
|
509
519
|
"C_DRAFT_POPOVER_ADMIN_DATA_DRAFTINFO_LOCKED_OBJECT_WITH_OWNER_INFO",
|
|
510
520
|
[user]
|
|
@@ -515,7 +525,7 @@ sap.ui.define(
|
|
|
515
525
|
.description("Draft indicator is visible and displays '" + text + "'")
|
|
516
526
|
.execute();
|
|
517
527
|
},
|
|
518
|
-
iSeeIconTabWithProperties: function(mProperties) {
|
|
528
|
+
iSeeIconTabWithProperties: function (mProperties) {
|
|
519
529
|
return (
|
|
520
530
|
OpaBuilder.create(this)
|
|
521
531
|
.hasId(IconTabBarId)
|
|
@@ -525,28 +535,22 @@ sap.ui.define(
|
|
|
525
535
|
.execute()
|
|
526
536
|
);
|
|
527
537
|
},
|
|
528
|
-
iSeeNumOfOperators: function(sFieldName, numItems) {
|
|
538
|
+
iSeeNumOfOperators: function (sFieldName, numItems) {
|
|
529
539
|
return OpaBuilder.create(this)
|
|
530
540
|
.hasId(FilterBarVHDId + sFieldName + "-DCP")
|
|
531
541
|
.doOnChildren(OpaBuilder.create(this).hasAggregationLength("items", numItems))
|
|
532
542
|
.description("Seeing a value list of condition operators with " + numItems + " items.")
|
|
533
543
|
.execute();
|
|
534
544
|
},
|
|
535
|
-
iSeeKPI: function(sTitle, oProperties) {
|
|
545
|
+
iSeeKPI: function (sTitle, oProperties) {
|
|
536
546
|
var sDescription = "Seeing KPI '" + sTitle + "'";
|
|
537
547
|
if (oProperties) {
|
|
538
548
|
sDescription += " with properties " + JSON.stringify(oProperties);
|
|
539
549
|
}
|
|
540
|
-
return KPIBuilder.create(this)
|
|
541
|
-
.checkKPITag(sTitle, oProperties)
|
|
542
|
-
.description(sDescription)
|
|
543
|
-
.execute();
|
|
550
|
+
return KPIBuilder.create(this).checkKPITag(sTitle, oProperties).description(sDescription).execute();
|
|
544
551
|
},
|
|
545
|
-
iSeeKPICard: function() {
|
|
546
|
-
return KPIBuilder.create(this)
|
|
547
|
-
.checkKPICard()
|
|
548
|
-
.description("Seeing KPI Card")
|
|
549
|
-
.execute();
|
|
552
|
+
iSeeKPICard: function () {
|
|
553
|
+
return KPIBuilder.create(this).checkKPICard().description("Seeing KPI Card").execute();
|
|
550
554
|
}
|
|
551
555
|
}
|
|
552
556
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* ! SAPUI5
|
|
3
|
-
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
(c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
|
+
|
|
4
5
|
*/
|
|
5
6
|
sap.ui.define(["sap/ui/test/OpaBuilder", "sap/ui/test/Opa5", "sap/fe/test/Utils"], function(OpaBuilder, Opa5, Utils) {
|
|
6
7
|
"use strict";
|