@sapui5/sap.fe.test 1.97.0 → 1.99.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.
- package/package.json +5 -2
- package/src/sap/fe/test/.library +1 -1
- package/src/sap/fe/test/BaseActions.js +3 -2
- package/src/sap/fe/test/BaseArrangements.js +3 -2
- 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 +3 -2
- package/src/sap/fe/test/JestTemplatingHelper.js +78 -22
- package/src/sap/fe/test/JestTemplatingHelper.ts +66 -22
- package/src/sap/fe/test/JourneyRunner.js +11 -5
- package/src/sap/fe/test/ListReport.js +11 -5
- package/src/sap/fe/test/LocationUtil.js +3 -2
- package/src/sap/fe/test/ObjectPage.js +28 -17
- 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 +3 -2
- package/src/sap/fe/test/TemplatingTestUtils.js +4 -3
- package/src/sap/fe/test/UI5MockHelper.js +234 -45
- package/src/sap/fe/test/UI5MockHelper.ts +127 -12
- package/src/sap/fe/test/Utils.js +3 -14
- package/src/sap/fe/test/api/APIHelper.js +3 -2
- package/src/sap/fe/test/api/BaseAPI.js +5 -9
- package/src/sap/fe/test/api/ChartActions.js +3 -2
- package/src/sap/fe/test/api/ChartAssertions.js +7 -6
- package/src/sap/fe/test/api/DialogAPI.js +17 -4
- package/src/sap/fe/test/api/DialogActions.js +3 -2
- 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 +19 -3
- 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 +3 -2
- 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 +3 -2
- 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 +43 -0
- package/src/sap/fe/test/api/KPICardAssertions.js +22 -17
- package/src/sap/fe/test/api/TableAPI.js +3 -2
- package/src/sap/fe/test/api/TableActions.js +3 -21
- package/src/sap/fe/test/api/TableAssertions.js +17 -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 +14 -4
- package/src/sap/fe/test/builder/MacroFieldBuilder.js +3 -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 +29 -2
- 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 +4 -3
- 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
|
["./FormAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "sap/fe/test/builder/MacroFieldBuilder"],
|
|
@@ -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(["./HeaderAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"], function(
|
|
6
7
|
HeaderAPI,
|
|
@@ -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(["./HeaderLR", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"], function(
|
|
6
7
|
HeaderLR,
|
|
@@ -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(["./BaseAPI", "sap/fe/test/Utils", "sap/fe/test/builder/KPIBuilder"], function(BaseAPI, Utils, KPIBuilder) {
|
|
6
7
|
"use strict";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
(c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
|
+
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function(KPICardAPI, Utils, FEBuilder) {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a new TableAssertions instance.
|
|
11
|
+
*
|
|
12
|
+
* @param {sap.fe.test.builder.KPIBuilder} oBuilderInstance The builder instance used to interact with the UI
|
|
13
|
+
* @returns {sap.fe.test.api.KPICardAssertions} The new instance
|
|
14
|
+
* @class
|
|
15
|
+
* @extends sap.fe.test.api.KPICardAPI
|
|
16
|
+
* @hideconstructor
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
var KPICardActions = function(oBuilderInstance) {
|
|
20
|
+
return KPICardAPI.call(this, oBuilderInstance);
|
|
21
|
+
};
|
|
22
|
+
KPICardActions.prototype = Object.create(KPICardAPI.prototype);
|
|
23
|
+
KPICardActions.prototype.constructor = KPICardActions;
|
|
24
|
+
KPICardActions.prototype.isAction = true;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Clicks on the header of the KPI Card.
|
|
28
|
+
*
|
|
29
|
+
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
30
|
+
*/
|
|
31
|
+
KPICardActions.prototype.iClickHeader = function() {
|
|
32
|
+
var oKPIBuilder = this.getBuilder();
|
|
33
|
+
|
|
34
|
+
return this.prepareResult(
|
|
35
|
+
oKPIBuilder
|
|
36
|
+
.doClickKPICardHeader()
|
|
37
|
+
.description("Clicking KPI card header")
|
|
38
|
+
.execute()
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return KPICardActions;
|
|
43
|
+
});
|
|
@@ -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(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function(KPICardAPI, Utils, FEBuilder) {
|
|
6
7
|
"use strict";
|
|
@@ -124,10 +125,10 @@ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuild
|
|
|
124
125
|
KPICardAssertions.prototype.iSeeHeaderValue = function(sValue, mStates) {
|
|
125
126
|
var oKPIBuilder = this.getBuilder();
|
|
126
127
|
var oProperties = mStates || {};
|
|
127
|
-
oProperties.
|
|
128
|
+
oProperties.number = sValue;
|
|
128
129
|
|
|
129
130
|
var vTitleMatcher = FEBuilder.create(this)
|
|
130
|
-
.hasType("sap.
|
|
131
|
+
.hasType("sap.f.cards.NumericIndicators")
|
|
131
132
|
.hasProperties(oProperties);
|
|
132
133
|
|
|
133
134
|
var sDescription = mStates
|
|
@@ -153,21 +154,25 @@ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuild
|
|
|
153
154
|
var oKPIBuilder = this.getBuilder();
|
|
154
155
|
|
|
155
156
|
var vIndicatorMatcher = FEBuilder.create(this)
|
|
156
|
-
.hasType("sap.f.cards.
|
|
157
|
+
.hasType("sap.f.cards.NumericIndicators")
|
|
157
158
|
.hasChildren(
|
|
158
159
|
FEBuilder.create(this)
|
|
159
|
-
.hasType("sap.
|
|
160
|
-
.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
.
|
|
160
|
+
.hasType("sap.f.cards.NumericSideIndicator")
|
|
161
|
+
.hasChildren(
|
|
162
|
+
FEBuilder.create(this)
|
|
163
|
+
.hasType("sap.m.Text")
|
|
164
|
+
.hasProperties({ text: sTitle })
|
|
165
|
+
)
|
|
166
|
+
.hasChildren(
|
|
167
|
+
FEBuilder.create(this)
|
|
168
|
+
.hasType("sap.m.Text")
|
|
169
|
+
.hasProperties({ text: sTitle })
|
|
170
|
+
)
|
|
171
|
+
.hasChildren(
|
|
172
|
+
FEBuilder.create(this)
|
|
173
|
+
.hasType("sap.m.Text")
|
|
174
|
+
.hasProperties({ text: sValue })
|
|
175
|
+
)
|
|
171
176
|
);
|
|
172
177
|
|
|
173
178
|
return this.prepareResult(
|
|
@@ -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
|
[
|
|
@@ -399,25 +400,6 @@ sap.ui.define(
|
|
|
399
400
|
);
|
|
400
401
|
};
|
|
401
402
|
|
|
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
403
|
/**
|
|
422
404
|
* Executes the <code>Fullscreen</code> action on the table.
|
|
423
405
|
*
|
|
@@ -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
|
/**
|
|
@@ -691,6 +691,17 @@ sap.ui.define(
|
|
|
691
691
|
);
|
|
692
692
|
};
|
|
693
693
|
|
|
694
|
+
TableAssertions.prototype.iCheckTitle = function(sTitle) {
|
|
695
|
+
var oTableBuilder = this.getBuilder();
|
|
696
|
+
|
|
697
|
+
return this.prepareResult(
|
|
698
|
+
oTableBuilder
|
|
699
|
+
.hasTitle(sTitle)
|
|
700
|
+
.description(Utils.formatMessage("Checking table '{0}' has title '{1}'", this.getIdentifier(), sTitle))
|
|
701
|
+
.execute()
|
|
702
|
+
);
|
|
703
|
+
};
|
|
704
|
+
|
|
694
705
|
return TableAssertions;
|
|
695
706
|
}
|
|
696
707
|
);
|
|
@@ -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";
|
|
@@ -77,10 +78,19 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
*
|
|
81
|
+
* Clicks on the KPI card header.
|
|
82
|
+
*
|
|
83
|
+
* @returns {sap.fe.test.builder.KPIBuilder} This instance
|
|
84
|
+
*/
|
|
85
|
+
KPIBuilder.prototype.doClickKPICardHeader = function() {
|
|
86
|
+
return this.hasType("sap.ui.integration.cards.NumericHeader").doPress();
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Applies a matcher to the content of the card header.
|
|
81
91
|
*
|
|
82
92
|
* @param {sap.ui.test.matchers.Matcher} vMatcher The matcher to filter child items
|
|
83
|
-
* @param {boolean} bDirectChild Specifies if the matcher
|
|
93
|
+
* @param {boolean} bDirectChild Specifies if the matcher should be applied only to direct children or all descendants
|
|
84
94
|
* @returns {sap.fe.test.builder.KPIBuilder} This instance
|
|
85
95
|
*/
|
|
86
96
|
KPIBuilder.prototype.doOnKPICardHeader = function(vMatcher, bDirectChild) {
|
|
@@ -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,
|
|
@@ -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";
|
|
@@ -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
|
[
|
|
@@ -236,6 +237,14 @@ sap.ui.define(
|
|
|
236
237
|
return this.has(TableBuilder.Matchers.columnsMatcher(mColumnMap, bIgnoreColumnState));
|
|
237
238
|
};
|
|
238
239
|
|
|
240
|
+
TableBuilder.prototype.hasTitle = function(sTitle) {
|
|
241
|
+
return this.hasChildren(
|
|
242
|
+
FEBuilder.create(this)
|
|
243
|
+
.hasType("sap.m.Title")
|
|
244
|
+
.hasProperties({ text: sTitle })
|
|
245
|
+
);
|
|
246
|
+
};
|
|
247
|
+
|
|
239
248
|
TableBuilder.prototype.hasSearchField = function(sSearchText, mState) {
|
|
240
249
|
var aArguments = Utils.parseArguments([String, Object], arguments);
|
|
241
250
|
mState = aArguments[1];
|
|
@@ -446,6 +455,13 @@ sap.ui.define(
|
|
|
446
455
|
.isDialogElement()
|
|
447
456
|
.hasType("sap.m.StandardListItem")
|
|
448
457
|
.checkNumberOfMatches(iExpectedNumber)
|
|
458
|
+
.success(
|
|
459
|
+
OpaBuilder.create()
|
|
460
|
+
.isDialogElement()
|
|
461
|
+
.hasType("sap.m.Button")
|
|
462
|
+
.hasProperties({ icon: "sap-icon://decline" })
|
|
463
|
+
.doPress()
|
|
464
|
+
)
|
|
449
465
|
);
|
|
450
466
|
}
|
|
451
467
|
} else {
|
|
@@ -465,6 +481,13 @@ sap.ui.define(
|
|
|
465
481
|
.hasType("sap.m.StandardListItem")
|
|
466
482
|
.hasProperties({ title: sFieldName })
|
|
467
483
|
.checkNumberOfMatches(iExpectedNumber)
|
|
484
|
+
.success(
|
|
485
|
+
OpaBuilder.create()
|
|
486
|
+
.isDialogElement()
|
|
487
|
+
.hasType("sap.m.Button")
|
|
488
|
+
.hasProperties({ icon: "sap-icon://decline" })
|
|
489
|
+
.doPress()
|
|
490
|
+
)
|
|
468
491
|
);
|
|
469
492
|
}
|
|
470
493
|
|
|
@@ -665,6 +688,10 @@ sap.ui.define(
|
|
|
665
688
|
return _createTableInternalButtonBuilder(this, "export", false, "sap.m.MenuButton");
|
|
666
689
|
};
|
|
667
690
|
|
|
691
|
+
TableBuilder.prototype.hasPaste = function() {
|
|
692
|
+
return _createTableInternalButtonBuilder(this, "paste", false, "sap.m.MenuButton");
|
|
693
|
+
};
|
|
694
|
+
|
|
668
695
|
TableBuilder.prototype.doExecuteInlineAction = function(vRowMatcher, vColumn) {
|
|
669
696
|
return this.doOnRows(vRowMatcher, TableBuilder.Row.Actions.pressInlineAction(vColumn));
|
|
670
697
|
};
|
|
@@ -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", "./FEBuilder", "sap/fe/test/Utils", "sap/ui/test/matchers/Interactable"], function(
|
|
6
7
|
OpaBuilder,
|
|
@@ -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(["sap/fe/test/JourneyRunner", "sap/fe/test/Utils", "./FEArrangements", "sap/base/Log"], function(
|
|
6
7
|
JourneyRunner,
|
|
@@ -18,7 +19,8 @@ sap.ui.define(["sap/fe/test/JourneyRunner", "sap/fe/test/Utils", "./FEArrangemen
|
|
|
18
19
|
var DEFAULT_RUNNER = new FERunner({
|
|
19
20
|
launchUrl: "test-resources/sap/fe/templates/internal/demokit/flpSandbox.html",
|
|
20
21
|
launchParameters: {
|
|
21
|
-
"sap-ui-xx-mdcTableP13n": true
|
|
22
|
+
"sap-ui-xx-mdcTableP13n": true,
|
|
23
|
+
"sap-ui-xx-csp-policy": "sap-target-level-3:ro"
|
|
22
24
|
},
|
|
23
25
|
opaConfig: {
|
|
24
26
|
frameWidth: 1300,
|
|
@@ -28,7 +30,8 @@ sap.ui.define(["sap/fe/test/JourneyRunner", "sap/fe/test/Utils", "./FEArrangemen
|
|
|
28
30
|
var WIDE_RUNNER = new FERunner({
|
|
29
31
|
launchUrl: "test-resources/sap/fe/templates/internal/demokit/flpSandbox.html",
|
|
30
32
|
launchParameters: {
|
|
31
|
-
"sap-ui-xx-mdcTableP13n": true
|
|
33
|
+
"sap-ui-xx-mdcTableP13n": true,
|
|
34
|
+
"sap-ui-xx-csp-policy": "sap-target-level-3:ro"
|
|
32
35
|
},
|
|
33
36
|
opaConfig: {
|
|
34
37
|
frameWidth: 1700,
|
|
@@ -38,7 +41,8 @@ sap.ui.define(["sap/fe/test/JourneyRunner", "sap/fe/test/Utils", "./FEArrangemen
|
|
|
38
41
|
var FCL_RUNNER = new FERunner({
|
|
39
42
|
launchUrl: "test-resources/sap/fe/templates/internal/demokit/flpSandbox.html",
|
|
40
43
|
launchParameters: {
|
|
41
|
-
"sap-ui-xx-mdcTableP13n": true
|
|
44
|
+
"sap-ui-xx-mdcTableP13n": true,
|
|
45
|
+
"sap-ui-xx-csp-policy": "sap-target-level-3:ro"
|
|
42
46
|
},
|
|
43
47
|
opaConfig: {
|
|
44
48
|
frameWidth: 1900,
|
|
@@ -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
|
|
|
6
7
|
sap.ui.define(
|
|
@@ -27,7 +28,7 @@ sap.ui.define(
|
|
|
27
28
|
interfaces: [],
|
|
28
29
|
controls: [],
|
|
29
30
|
elements: [],
|
|
30
|
-
version: "1.
|
|
31
|
+
version: "1.99.1",
|
|
31
32
|
noLibraryCSS: true
|
|
32
33
|
});
|
|
33
34
|
|