@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
|
[
|
|
@@ -15,7 +16,7 @@ sap.ui.define(
|
|
|
15
16
|
"sap/fe/test/builder/MdcFilterFieldBuilder",
|
|
16
17
|
"./APIHelper"
|
|
17
18
|
],
|
|
18
|
-
function(TableAPI, Utils, OpaBuilder, FEBuilder, Interactable, VMBuilder, SortOrder, Core, FilterFieldBuilder, APIHelper) {
|
|
19
|
+
function (TableAPI, Utils, OpaBuilder, FEBuilder, Interactable, VMBuilder, SortOrder, Core, FilterFieldBuilder, APIHelper) {
|
|
19
20
|
"use strict";
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -30,7 +31,7 @@ sap.ui.define(
|
|
|
30
31
|
* @hideconstructor
|
|
31
32
|
* @public
|
|
32
33
|
*/
|
|
33
|
-
var Actions = function(oBuilderInstance, vTableDescription) {
|
|
34
|
+
var Actions = function (oBuilderInstance, vTableDescription) {
|
|
34
35
|
return TableAPI.call(this, oBuilderInstance, vTableDescription);
|
|
35
36
|
};
|
|
36
37
|
Actions.prototype = Object.create(TableAPI.prototype);
|
|
@@ -52,7 +53,7 @@ sap.ui.define(
|
|
|
52
53
|
*
|
|
53
54
|
* @public
|
|
54
55
|
*/
|
|
55
|
-
Actions.prototype.iPressCell = function(mRowValues, vColumn) {
|
|
56
|
+
Actions.prototype.iPressCell = function (mRowValues, vColumn) {
|
|
56
57
|
var oTableBuilder = this.getBuilder();
|
|
57
58
|
return this.prepareResult(
|
|
58
59
|
oTableBuilder
|
|
@@ -86,7 +87,7 @@ sap.ui.define(
|
|
|
86
87
|
*
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
|
-
Actions.prototype.iSelectRows = function(vRowValues, mState) {
|
|
90
|
+
Actions.prototype.iSelectRows = function (vRowValues, mState) {
|
|
90
91
|
var aArguments = Utils.parseArguments([[Object, Number], Object], arguments),
|
|
91
92
|
oTableBuilder = this.getBuilder();
|
|
92
93
|
return this.prepareResult(
|
|
@@ -111,7 +112,7 @@ sap.ui.define(
|
|
|
111
112
|
*
|
|
112
113
|
* @public
|
|
113
114
|
*/
|
|
114
|
-
Actions.prototype.iSelectAllRows = function() {
|
|
115
|
+
Actions.prototype.iSelectAllRows = function () {
|
|
115
116
|
var oTableBuilder = this.getBuilder();
|
|
116
117
|
return this.prepareResult(
|
|
117
118
|
oTableBuilder
|
|
@@ -135,7 +136,7 @@ sap.ui.define(
|
|
|
135
136
|
*
|
|
136
137
|
* @public
|
|
137
138
|
*/
|
|
138
|
-
Actions.prototype.iPressRow = function(vRowValues) {
|
|
139
|
+
Actions.prototype.iPressRow = function (vRowValues) {
|
|
139
140
|
var oTableBuilder = this.getBuilder();
|
|
140
141
|
return this.prepareResult(
|
|
141
142
|
oTableBuilder
|
|
@@ -155,7 +156,7 @@ sap.ui.define(
|
|
|
155
156
|
*
|
|
156
157
|
* @public
|
|
157
158
|
*/
|
|
158
|
-
Actions.prototype.iExpandGroupRow = function(iLevel, sTitle) {
|
|
159
|
+
Actions.prototype.iExpandGroupRow = function (iLevel, sTitle) {
|
|
159
160
|
var oTableBuilder = this.getBuilder();
|
|
160
161
|
return this.prepareResult(
|
|
161
162
|
oTableBuilder
|
|
@@ -175,7 +176,7 @@ sap.ui.define(
|
|
|
175
176
|
*
|
|
176
177
|
* @public
|
|
177
178
|
*/
|
|
178
|
-
Actions.prototype.iCollapseGroupRow = function(iLevel, sTitle) {
|
|
179
|
+
Actions.prototype.iCollapseGroupRow = function (iLevel, sTitle) {
|
|
179
180
|
var oTableBuilder = this.getBuilder();
|
|
180
181
|
return this.prepareResult(
|
|
181
182
|
oTableBuilder
|
|
@@ -194,7 +195,7 @@ sap.ui.define(
|
|
|
194
195
|
*
|
|
195
196
|
* @ui5-restricted
|
|
196
197
|
*/
|
|
197
|
-
Actions.prototype.iScroll = function(sDirection) {
|
|
198
|
+
Actions.prototype.iScroll = function (sDirection) {
|
|
198
199
|
var oTableBuilder = this.getBuilder();
|
|
199
200
|
return this.prepareResult(
|
|
200
201
|
oTableBuilder
|
|
@@ -212,14 +213,10 @@ sap.ui.define(
|
|
|
212
213
|
*
|
|
213
214
|
* @ui5-restricted
|
|
214
215
|
*/
|
|
215
|
-
Actions.prototype.iPressMore = function() {
|
|
216
|
+
Actions.prototype.iPressMore = function () {
|
|
216
217
|
var oTableBuilder = this.getBuilder();
|
|
217
218
|
return this.prepareResult(
|
|
218
|
-
oTableBuilder
|
|
219
|
-
.checkNumberOfMatches(1)
|
|
220
|
-
.doPressMore()
|
|
221
|
-
.description(Utils.formatMessage("Press more"))
|
|
222
|
-
.execute()
|
|
219
|
+
oTableBuilder.checkNumberOfMatches(1).doPressMore().description(Utils.formatMessage("Press more")).execute()
|
|
223
220
|
);
|
|
224
221
|
};
|
|
225
222
|
|
|
@@ -237,11 +234,12 @@ sap.ui.define(
|
|
|
237
234
|
* </pre></code>
|
|
238
235
|
* Alternatively, the 0-based row index can be used.
|
|
239
236
|
* @param {object} mTargetValues A map of columns (either name or index) to its new value. The columns do not need to match the ones defined in <code>vRowValues</code>.
|
|
237
|
+
* @param {boolean} bInputNotFinalized If true, we keep the focus on the modified cell and don't press enter to validate the input
|
|
240
238
|
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
241
239
|
*
|
|
242
240
|
* @public
|
|
243
241
|
*/
|
|
244
|
-
Actions.prototype.iChangeRow = function(vRowValues, mTargetValues) {
|
|
242
|
+
Actions.prototype.iChangeRow = function (vRowValues, mTargetValues, bInputNotFinalized) {
|
|
245
243
|
var oTableBuilder = this.getBuilder(),
|
|
246
244
|
bIsCreationRow = false;
|
|
247
245
|
|
|
@@ -251,9 +249,11 @@ sap.ui.define(
|
|
|
251
249
|
}
|
|
252
250
|
|
|
253
251
|
if (!bIsCreationRow) {
|
|
254
|
-
oTableBuilder
|
|
252
|
+
oTableBuilder
|
|
253
|
+
.checkNumberOfMatches(1)
|
|
254
|
+
.doEditValues(TableAPI.createRowMatchers(vRowValues), mTargetValues, bInputNotFinalized);
|
|
255
255
|
} else {
|
|
256
|
-
oTableBuilder.checkNumberOfMatches(1).doEditCreationRowValues(mTargetValues);
|
|
256
|
+
oTableBuilder.checkNumberOfMatches(1).doEditCreationRowValues(mTargetValues, bInputNotFinalized);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
return this.prepareResult(
|
|
@@ -278,7 +278,7 @@ sap.ui.define(
|
|
|
278
278
|
*
|
|
279
279
|
* @public
|
|
280
280
|
*/
|
|
281
|
-
Actions.prototype.iExecuteAction = function(vActionIdentifier) {
|
|
281
|
+
Actions.prototype.iExecuteAction = function (vActionIdentifier) {
|
|
282
282
|
var aArguments = Utils.parseArguments([[Object, String]], arguments),
|
|
283
283
|
oTableBuilder = this.getBuilder();
|
|
284
284
|
|
|
@@ -298,7 +298,7 @@ sap.ui.define(
|
|
|
298
298
|
*
|
|
299
299
|
* @public
|
|
300
300
|
*/
|
|
301
|
-
Actions.prototype.iExecuteMenuAction = function(vAction) {
|
|
301
|
+
Actions.prototype.iExecuteMenuAction = function (vAction) {
|
|
302
302
|
return this.prepareResult(APIHelper.createMenuActionExecutorBuilder(vAction).execute());
|
|
303
303
|
};
|
|
304
304
|
|
|
@@ -310,7 +310,7 @@ sap.ui.define(
|
|
|
310
310
|
*
|
|
311
311
|
* @public
|
|
312
312
|
*/
|
|
313
|
-
Actions.prototype.iExecuteShowHideDetails = function(bShowDetails) {
|
|
313
|
+
Actions.prototype.iExecuteShowHideDetails = function (bShowDetails) {
|
|
314
314
|
var oTableBuilder = this.getBuilder();
|
|
315
315
|
return this.prepareResult(
|
|
316
316
|
oTableBuilder
|
|
@@ -333,7 +333,7 @@ sap.ui.define(
|
|
|
333
333
|
*
|
|
334
334
|
* @public
|
|
335
335
|
*/
|
|
336
|
-
Actions.prototype.iExecuteDelete = function() {
|
|
336
|
+
Actions.prototype.iExecuteDelete = function () {
|
|
337
337
|
var oTableBuilder = this.getBuilder(),
|
|
338
338
|
sDeleteId = "::StandardAction::Delete";
|
|
339
339
|
|
|
@@ -359,7 +359,7 @@ sap.ui.define(
|
|
|
359
359
|
*
|
|
360
360
|
* @public
|
|
361
361
|
*/
|
|
362
|
-
Actions.prototype.iSelectQuickFilterItem = function(vItemIdentifier) {
|
|
362
|
+
Actions.prototype.iSelectQuickFilterItem = function (vItemIdentifier) {
|
|
363
363
|
var oPropertyMatcher;
|
|
364
364
|
if (Utils.isOfType(vItemIdentifier, String)) {
|
|
365
365
|
oPropertyMatcher = { text: vItemIdentifier };
|
|
@@ -387,7 +387,7 @@ sap.ui.define(
|
|
|
387
387
|
*
|
|
388
388
|
* @public
|
|
389
389
|
*/
|
|
390
|
-
Actions.prototype.iExecuteCreate = function() {
|
|
390
|
+
Actions.prototype.iExecuteCreate = function () {
|
|
391
391
|
var oTableBuilder = this.getBuilder(),
|
|
392
392
|
sCreateId = "::StandardAction::Create";
|
|
393
393
|
|
|
@@ -399,25 +399,6 @@ sap.ui.define(
|
|
|
399
399
|
);
|
|
400
400
|
};
|
|
401
401
|
|
|
402
|
-
/**
|
|
403
|
-
* Executes the <code>Paste</code> action on the table.
|
|
404
|
-
*
|
|
405
|
-
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
406
|
-
*
|
|
407
|
-
* @public
|
|
408
|
-
*/
|
|
409
|
-
Actions.prototype.iExecutePaste = function() {
|
|
410
|
-
var oTableBuilder = this.getBuilder(),
|
|
411
|
-
sPasteId = "::StandardAction::Paste";
|
|
412
|
-
|
|
413
|
-
return this.prepareResult(
|
|
414
|
-
oTableBuilder
|
|
415
|
-
.doExecuteAction(FEBuilder.Matchers.id(new RegExp(Utils.formatMessage("{0}$", sPasteId))))
|
|
416
|
-
.description(Utils.formatMessage("Pressing paste action of table '{0}'", this.getIdentifier()))
|
|
417
|
-
.execute()
|
|
418
|
-
);
|
|
419
|
-
};
|
|
420
|
-
|
|
421
402
|
/**
|
|
422
403
|
* Executes the <code>Fullscreen</code> action on the table.
|
|
423
404
|
*
|
|
@@ -425,7 +406,7 @@ sap.ui.define(
|
|
|
425
406
|
*
|
|
426
407
|
* @public
|
|
427
408
|
*/
|
|
428
|
-
Actions.prototype.iExecuteFullScreen = function() {
|
|
409
|
+
Actions.prototype.iExecuteFullScreen = function () {
|
|
429
410
|
var oTableBuilder = this.getBuilder(),
|
|
430
411
|
sFullScreenId = "::StandardAction::FullScreen";
|
|
431
412
|
|
|
@@ -444,7 +425,7 @@ sap.ui.define(
|
|
|
444
425
|
*
|
|
445
426
|
* @public
|
|
446
427
|
*/
|
|
447
|
-
Actions.prototype.iExecuteInlineCreate = function() {
|
|
428
|
+
Actions.prototype.iExecuteInlineCreate = function () {
|
|
448
429
|
var oTableBuilder = this.getBuilder();
|
|
449
430
|
|
|
450
431
|
return this.prepareResult(
|
|
@@ -476,7 +457,7 @@ sap.ui.define(
|
|
|
476
457
|
*
|
|
477
458
|
* @public
|
|
478
459
|
*/
|
|
479
|
-
Actions.prototype.iExecuteInlineAction = function(vRowValues, vColumn) {
|
|
460
|
+
Actions.prototype.iExecuteInlineAction = function (vRowValues, vColumn) {
|
|
480
461
|
var aArguments = Utils.parseArguments(
|
|
481
462
|
[
|
|
482
463
|
[Object, Number],
|
|
@@ -521,7 +502,7 @@ sap.ui.define(
|
|
|
521
502
|
*
|
|
522
503
|
* @public
|
|
523
504
|
*/
|
|
524
|
-
Actions.prototype.iExecuteKeyboardShortcut = function(sShortcut, vRowValues, vColumn) {
|
|
505
|
+
Actions.prototype.iExecuteKeyboardShortcut = function (sShortcut, vRowValues, vColumn) {
|
|
525
506
|
return this.prepareResult(
|
|
526
507
|
this.getBuilder()
|
|
527
508
|
.doPressKeyboardShortcut(sShortcut, vRowValues, vColumn)
|
|
@@ -548,16 +529,16 @@ sap.ui.define(
|
|
|
548
529
|
*
|
|
549
530
|
* @public
|
|
550
531
|
*/
|
|
551
|
-
Actions.prototype.iSaveVariant = function(sVariantName) {
|
|
532
|
+
Actions.prototype.iSaveVariant = function (sVariantName) {
|
|
552
533
|
var fnSuccessFunction = Utils.isOfType(sVariantName, String)
|
|
553
|
-
? function(oTable) {
|
|
534
|
+
? function (oTable) {
|
|
554
535
|
return VMBuilder.create(this)
|
|
555
536
|
.hasId(oTable.getId ? oTable.getId() + "::VM" : oTable[0].getId() + "::VM")
|
|
556
537
|
.doSaveAs(sVariantName)
|
|
557
538
|
.description(Utils.formatMessage("Saving variant for '{0}' as '{1}'", this.getIdentifier(), sVariantName))
|
|
558
539
|
.execute();
|
|
559
540
|
}
|
|
560
|
-
: function(oTable) {
|
|
541
|
+
: function (oTable) {
|
|
561
542
|
return VMBuilder.create(this)
|
|
562
543
|
.hasId(oTable.getId ? oTable.getId() + "::VM" : oTable[0].getId() + "::VM")
|
|
563
544
|
.doSave()
|
|
@@ -565,11 +546,7 @@ sap.ui.define(
|
|
|
565
546
|
.execute();
|
|
566
547
|
};
|
|
567
548
|
|
|
568
|
-
return this.prepareResult(
|
|
569
|
-
this.getBuilder()
|
|
570
|
-
.success(fnSuccessFunction.bind(this))
|
|
571
|
-
.execute()
|
|
572
|
-
);
|
|
549
|
+
return this.prepareResult(this.getBuilder().success(fnSuccessFunction.bind(this)).execute());
|
|
573
550
|
};
|
|
574
551
|
|
|
575
552
|
/**
|
|
@@ -580,11 +557,11 @@ sap.ui.define(
|
|
|
580
557
|
*
|
|
581
558
|
* @public
|
|
582
559
|
*/
|
|
583
|
-
Actions.prototype.iRemoveVariant = function(sVariantName) {
|
|
560
|
+
Actions.prototype.iRemoveVariant = function (sVariantName) {
|
|
584
561
|
return this.prepareResult(
|
|
585
562
|
this.getBuilder()
|
|
586
563
|
.success(
|
|
587
|
-
function(oTable) {
|
|
564
|
+
function (oTable) {
|
|
588
565
|
return VMBuilder.create(this)
|
|
589
566
|
.hasId(oTable.getId() + "::VM")
|
|
590
567
|
.doRemoveVariant(sVariantName)
|
|
@@ -604,11 +581,11 @@ sap.ui.define(
|
|
|
604
581
|
*
|
|
605
582
|
* @public
|
|
606
583
|
*/
|
|
607
|
-
Actions.prototype.iSelectVariant = function(sVariantName) {
|
|
584
|
+
Actions.prototype.iSelectVariant = function (sVariantName) {
|
|
608
585
|
return this.prepareResult(
|
|
609
586
|
this.getBuilder()
|
|
610
587
|
.success(
|
|
611
|
-
function(oTable) {
|
|
588
|
+
function (oTable) {
|
|
612
589
|
return VMBuilder.create(this)
|
|
613
590
|
.hasId(oTable.getId() + "::VM")
|
|
614
591
|
.doSelectVariant(sVariantName)
|
|
@@ -628,11 +605,11 @@ sap.ui.define(
|
|
|
628
605
|
*
|
|
629
606
|
* @public
|
|
630
607
|
*/
|
|
631
|
-
Actions.prototype.iSetDefaultVariant = function(sVariantName) {
|
|
608
|
+
Actions.prototype.iSetDefaultVariant = function (sVariantName) {
|
|
632
609
|
return this.prepareResult(
|
|
633
610
|
this.getBuilder()
|
|
634
611
|
.success(
|
|
635
|
-
function(oTable) {
|
|
612
|
+
function (oTable) {
|
|
636
613
|
return sVariantName
|
|
637
614
|
? VMBuilder.create(this)
|
|
638
615
|
.hasId(oTable.getId ? oTable.getId() + "::VM" : oTable[0].getId() + "::VM")
|
|
@@ -666,7 +643,7 @@ sap.ui.define(
|
|
|
666
643
|
*
|
|
667
644
|
* @public
|
|
668
645
|
*/
|
|
669
|
-
Actions.prototype.iAddAdaptationColumn = function(vColumnIdentifier) {
|
|
646
|
+
Actions.prototype.iAddAdaptationColumn = function (vColumnIdentifier) {
|
|
670
647
|
return this.columnAdaptation(
|
|
671
648
|
vColumnIdentifier,
|
|
672
649
|
{ selected: false },
|
|
@@ -683,7 +660,7 @@ sap.ui.define(
|
|
|
683
660
|
*
|
|
684
661
|
* @public
|
|
685
662
|
*/
|
|
686
|
-
Actions.prototype.iRemoveAdaptationColumn = function(vColumnIdentifier) {
|
|
663
|
+
Actions.prototype.iRemoveAdaptationColumn = function (vColumnIdentifier) {
|
|
687
664
|
return this.columnAdaptation(
|
|
688
665
|
vColumnIdentifier,
|
|
689
666
|
{ selected: true },
|
|
@@ -701,21 +678,21 @@ sap.ui.define(
|
|
|
701
678
|
*
|
|
702
679
|
* @public
|
|
703
680
|
*/
|
|
704
|
-
Actions.prototype.iChangeSortOrder = function(vColumnIdentifier, sSortOrder) {
|
|
681
|
+
Actions.prototype.iChangeSortOrder = function (vColumnIdentifier, sSortOrder) {
|
|
705
682
|
var oOpaInstance = this.getOpaInstance(),
|
|
706
683
|
aActions = [],
|
|
707
|
-
fnSelectSortingColumnAction = function(oColumnListItem) {
|
|
684
|
+
fnSelectSortingColumnAction = function (oColumnListItem) {
|
|
708
685
|
var oChildBuilder = OpaBuilder.create(oOpaInstance).hasType("sap.m.Select"),
|
|
709
686
|
vControls = OpaBuilder.Matchers.children(oChildBuilder)(oColumnListItem),
|
|
710
687
|
fnFindItem = Utils.isOfType(vColumnIdentifier, String)
|
|
711
|
-
? function(oItem) {
|
|
688
|
+
? function (oItem) {
|
|
712
689
|
return oItem.getText() === vColumnIdentifier;
|
|
713
690
|
}
|
|
714
|
-
: function(oItem) {
|
|
691
|
+
: function (oItem) {
|
|
715
692
|
return oItem.getKey() === vColumnIdentifier.name;
|
|
716
693
|
};
|
|
717
694
|
|
|
718
|
-
return OpaBuilder.Actions.executor(function(oSelectControl) {
|
|
695
|
+
return OpaBuilder.Actions.executor(function (oSelectControl) {
|
|
719
696
|
var oItemToSelect = oSelectControl.getItems().find(fnFindItem);
|
|
720
697
|
if (!oItemToSelect) {
|
|
721
698
|
throw Error(Utils.formatMessage("can not find sort item '{0}'", vColumnIdentifier));
|
|
@@ -725,14 +702,12 @@ sap.ui.define(
|
|
|
725
702
|
oSelectControl.fireChange({ selectedItem: oItemToSelect });
|
|
726
703
|
})(vControls);
|
|
727
704
|
},
|
|
728
|
-
fnSelectSortOrderAction = function(oColumnListItem) {
|
|
705
|
+
fnSelectSortOrderAction = function (oColumnListItem) {
|
|
729
706
|
var sIcon =
|
|
730
707
|
sSortOrder === SortOrder.None
|
|
731
708
|
? "sap-icon://decline"
|
|
732
709
|
: "sap-icon://sort-" + (sSortOrder === SortOrder.Ascending ? "ascending" : "descending"),
|
|
733
|
-
oTargetButtonMatcher = OpaBuilder.create(oOpaInstance)
|
|
734
|
-
.hasType("sap.m.Button")
|
|
735
|
-
.hasProperties({ icon: sIcon });
|
|
710
|
+
oTargetButtonMatcher = OpaBuilder.create(oOpaInstance).hasType("sap.m.Button").hasProperties({ icon: sIcon });
|
|
736
711
|
var vControl = OpaBuilder.Matchers.children(oTargetButtonMatcher)(oColumnListItem);
|
|
737
712
|
return OpaBuilder.Actions.executor(OpaBuilder.Actions.press())(vControl);
|
|
738
713
|
};
|
|
@@ -766,7 +741,7 @@ sap.ui.define(
|
|
|
766
741
|
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
767
742
|
* @public
|
|
768
743
|
*/
|
|
769
|
-
Actions.prototype.iSortByColumn = function(vColumnIdentifier, sFieldLabel, bDescending) {
|
|
744
|
+
Actions.prototype.iSortByColumn = function (vColumnIdentifier, sFieldLabel, bDescending) {
|
|
770
745
|
var oTableBuilder = this.getBuilder(),
|
|
771
746
|
vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier;
|
|
772
747
|
return this.prepareResult(
|
|
@@ -793,7 +768,7 @@ sap.ui.define(
|
|
|
793
768
|
*
|
|
794
769
|
* @public
|
|
795
770
|
*/
|
|
796
|
-
Actions.prototype.iGroupByColumn = function(vColumnIdentifier, sFieldLabel) {
|
|
771
|
+
Actions.prototype.iGroupByColumn = function (vColumnIdentifier, sFieldLabel) {
|
|
797
772
|
var oTableBuilder = this.getBuilder(),
|
|
798
773
|
vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier;
|
|
799
774
|
return this.prepareResult(
|
|
@@ -820,7 +795,7 @@ sap.ui.define(
|
|
|
820
795
|
*
|
|
821
796
|
* @public
|
|
822
797
|
*/
|
|
823
|
-
Actions.prototype.iAggregateByColumn = function(vColumnIdentifier, sFieldLabel) {
|
|
798
|
+
Actions.prototype.iAggregateByColumn = function (vColumnIdentifier, sFieldLabel) {
|
|
824
799
|
var oTableBuilder = this.getBuilder(),
|
|
825
800
|
vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier;
|
|
826
801
|
return this.prepareResult(
|
|
@@ -846,7 +821,7 @@ sap.ui.define(
|
|
|
846
821
|
*
|
|
847
822
|
* @public
|
|
848
823
|
*/
|
|
849
|
-
Actions.prototype.iChangeSearchField = function(sSearchText) {
|
|
824
|
+
Actions.prototype.iChangeSearchField = function (sSearchText) {
|
|
850
825
|
return this.prepareResult(
|
|
851
826
|
this.getBuilder()
|
|
852
827
|
.doChangeSearch(sSearchText)
|
|
@@ -864,7 +839,7 @@ sap.ui.define(
|
|
|
864
839
|
*
|
|
865
840
|
* @public
|
|
866
841
|
*/
|
|
867
|
-
Actions.prototype.iResetSearchField = function() {
|
|
842
|
+
Actions.prototype.iResetSearchField = function () {
|
|
868
843
|
return this.prepareResult(
|
|
869
844
|
this.getBuilder()
|
|
870
845
|
.doResetSearch()
|
|
@@ -883,7 +858,7 @@ sap.ui.define(
|
|
|
883
858
|
*
|
|
884
859
|
* @public
|
|
885
860
|
*/
|
|
886
|
-
Actions.prototype.iChangeFilterField = function(vColumnIdentifier, vValue, bClearFirst) {
|
|
861
|
+
Actions.prototype.iChangeFilterField = function (vColumnIdentifier, vValue, bClearFirst) {
|
|
887
862
|
var oFilterFieldBuilder = FilterFieldBuilder.create(this.getOpaInstance())
|
|
888
863
|
.isDialogElement()
|
|
889
864
|
.hasType("sap.ui.mdc.FilterField")
|
|
@@ -906,16 +881,13 @@ sap.ui.define(
|
|
|
906
881
|
|
|
907
882
|
return this.prepareResult(
|
|
908
883
|
FEBuilder.create(this.getOpaInstance())
|
|
909
|
-
.success(function() {
|
|
884
|
+
.success(function () {
|
|
910
885
|
bDialogOpen = FEBuilder.controlsExist(oFilterFieldBuilder);
|
|
911
886
|
if (!bDialogOpen) {
|
|
912
887
|
fnOpenDialog();
|
|
913
888
|
oFilterFieldBuilder.success(fnCloseDialog);
|
|
914
889
|
}
|
|
915
|
-
return oFilterFieldBuilder
|
|
916
|
-
.doChangeValue(vValue, bClearFirst)
|
|
917
|
-
.description(sDescription)
|
|
918
|
-
.execute();
|
|
890
|
+
return oFilterFieldBuilder.doChangeValue(vValue, bClearFirst).description(sDescription).execute();
|
|
919
891
|
})
|
|
920
892
|
.execute()
|
|
921
893
|
);
|
|
@@ -929,7 +901,7 @@ sap.ui.define(
|
|
|
929
901
|
*
|
|
930
902
|
* @public
|
|
931
903
|
*/
|
|
932
|
-
Actions.prototype.iPasteData = function(aData) {
|
|
904
|
+
Actions.prototype.iPasteData = function (aData) {
|
|
933
905
|
return this.prepareResult(
|
|
934
906
|
this.getBuilder()
|
|
935
907
|
.doPasteData(aData)
|
|
@@ -946,10 +918,8 @@ sap.ui.define(
|
|
|
946
918
|
* @public
|
|
947
919
|
* @ui5-restricted
|
|
948
920
|
*/
|
|
949
|
-
Actions.prototype.iClickOnMessageStripFilter = function() {
|
|
950
|
-
return this.getBuilder()
|
|
951
|
-
.doClickOnMessageStripFilter()
|
|
952
|
-
.execute();
|
|
921
|
+
Actions.prototype.iClickOnMessageStripFilter = function () {
|
|
922
|
+
return this.getBuilder().doClickOnMessageStripFilter().execute();
|
|
953
923
|
};
|
|
954
924
|
|
|
955
925
|
return Actions;
|
|
@@ -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
|
[
|
|
@@ -356,15 +357,14 @@ sap.ui.define(
|
|
|
356
357
|
};
|
|
357
358
|
|
|
358
359
|
/**
|
|
359
|
-
* Checks the
|
|
360
|
+
* Checks whether the paste button is available for the table.
|
|
360
361
|
*
|
|
361
|
-
* @param {object} [mState] Defines the expected state of the button
|
|
362
362
|
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
363
363
|
*
|
|
364
364
|
* @public
|
|
365
365
|
*/
|
|
366
|
-
TableAssertions.prototype.iCheckPaste = function(
|
|
367
|
-
return this.
|
|
366
|
+
TableAssertions.prototype.iCheckPaste = function() {
|
|
367
|
+
return this._iCheckTableProvidedAction("Paste");
|
|
368
368
|
};
|
|
369
369
|
|
|
370
370
|
/**
|
|
@@ -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(["./FEBuilder", "./OverflowToolbarBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], function(
|
|
6
7
|
FEBuilder,
|
|
@@ -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(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], function(FEBuilder, OpaBuilder, Utils) {
|
|
6
7
|
"use strict";
|
|
@@ -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(["./FEBuilder", "./MdcFieldBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], function(
|
|
6
7
|
FEBuilder,
|
|
@@ -49,6 +50,9 @@ sap.ui.define(["./FEBuilder", "./MdcFieldBuilder", "sap/ui/test/OpaBuilder", "sa
|
|
|
49
50
|
// we need to do this to be able to retrieve the child of the FormElementWrapper when its child is not visible
|
|
50
51
|
return _getMainControls(oContent.getContent());
|
|
51
52
|
}
|
|
53
|
+
if (oContent.isA("sap.fe.core.controls.FileWrapper")) {
|
|
54
|
+
return _getMainControls(oContent.getAvatar());
|
|
55
|
+
}
|
|
52
56
|
if (oContent.isA("sap.fe.core.controls.FieldWrapper")) {
|
|
53
57
|
if (oContent.getEditMode() === "Display") {
|
|
54
58
|
return _getMainControls(oContent.getContentDisplay());
|
|
@@ -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
|
["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/ui/mdc/enum/FieldDisplay", "sap/fe/test/Utils", "sap/ui/mdc/enum/ConditionValidated"],
|
|
@@ -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(["./FEBuilder", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/DialogBuilder"], function(
|
|
6
7
|
FEBuilder,
|
|
@@ -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(["./MdcFieldBuilder", "sap/fe/test/Utils"], function(FieldBuilder, Utils) {
|
|
6
7
|
"use strict";
|