@sapui5/sap.fe.test 1.95.0 → 1.96.4
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 +3 -2
- package/src/sap/fe/test/.library +1 -1
- package/src/sap/fe/test/BaseActions.js +1 -1
- package/src/sap/fe/test/BaseArrangements.js +1 -1
- package/src/sap/fe/test/BaseAssertions.js +1 -1
- package/src/sap/fe/test/ConfirmDialog.js +1 -1
- package/src/sap/fe/test/FCLView.js +1 -7
- package/src/sap/fe/test/Flexibility.js +32 -9
- package/src/sap/fe/test/FlexibleColumnLayout.js +1 -1
- package/src/sap/fe/test/JestTemplatingHelper.js +99 -6
- package/src/sap/fe/test/JestTemplatingHelper.ts +65 -3
- package/src/sap/fe/test/JourneyRunner.js +1 -1
- package/src/sap/fe/test/ListReport.js +1 -1
- package/src/sap/fe/test/LocationUtil.js +1 -1
- package/src/sap/fe/test/ObjectPage.js +41 -1
- package/src/sap/fe/test/Shell.js +17 -12
- package/src/sap/fe/test/Stubs.js +1 -1
- package/src/sap/fe/test/TemplatePage.js +1 -1
- package/src/sap/fe/test/TemplatingTestUtils.js +1 -1
- package/src/sap/fe/test/UI5MockHelper.js +218 -0
- package/src/sap/fe/test/UI5MockHelper.ts +137 -0
- package/src/sap/fe/test/Utils.js +6 -2
- package/src/sap/fe/test/api/APIHelper.js +1 -1
- package/src/sap/fe/test/api/BaseAPI.js +1 -1
- package/src/sap/fe/test/api/ChartActions.js +1 -1
- package/src/sap/fe/test/api/ChartAssertions.js +10 -6
- package/src/sap/fe/test/api/DialogAPI.js +1 -1
- package/src/sap/fe/test/api/DialogActions.js +1 -1
- package/src/sap/fe/test/api/DialogAssertions.js +1 -1
- package/src/sap/fe/test/api/DialogCreateActions.js +1 -1
- package/src/sap/fe/test/api/DialogCreateAssertions.js +1 -1
- package/src/sap/fe/test/api/DialogMessageActions.js +1 -1
- package/src/sap/fe/test/api/DialogMessageAssertions.js +1 -1
- package/src/sap/fe/test/api/DialogType.js +1 -1
- package/src/sap/fe/test/api/DialogValueHelpActions.js +1 -1
- package/src/sap/fe/test/api/DialogValueHelpAssertions.js +1 -1
- package/src/sap/fe/test/api/EditState.js +1 -1
- package/src/sap/fe/test/api/FilterBarAPI.js +1 -1
- package/src/sap/fe/test/api/FilterBarActions.js +1 -1
- package/src/sap/fe/test/api/FilterBarAssertions.js +1 -1
- package/src/sap/fe/test/api/FooterAPI.js +1 -1
- package/src/sap/fe/test/api/FooterActionsBase.js +1 -1
- package/src/sap/fe/test/api/FooterActionsOP.js +1 -1
- package/src/sap/fe/test/api/FooterAssertionsBase.js +1 -1
- package/src/sap/fe/test/api/FooterAssertionsOP.js +1 -1
- package/src/sap/fe/test/api/FormAPI.js +1 -1
- package/src/sap/fe/test/api/FormActions.js +1 -1
- package/src/sap/fe/test/api/FormAssertions.js +1 -1
- package/src/sap/fe/test/api/HeaderAPI.js +1 -1
- package/src/sap/fe/test/api/HeaderActions.js +1 -1
- package/src/sap/fe/test/api/HeaderActionsLR.js +1 -1
- package/src/sap/fe/test/api/HeaderAssertions.js +1 -1
- package/src/sap/fe/test/api/HeaderAssertionsLR.js +1 -1
- package/src/sap/fe/test/api/HeaderLR.js +1 -1
- package/src/sap/fe/test/api/KPICardAPI.js +1 -1
- package/src/sap/fe/test/api/KPICardAssertions.js +23 -1
- package/src/sap/fe/test/api/TableAPI.js +1 -1
- package/src/sap/fe/test/api/TableActions.js +1 -1
- package/src/sap/fe/test/api/TableAssertions.js +1 -1
- package/src/sap/fe/test/builder/DialogBuilder.js +1 -1
- package/src/sap/fe/test/builder/FEBuilder.js +1 -1
- package/src/sap/fe/test/builder/KPIBuilder.js +17 -1
- package/src/sap/fe/test/builder/MacroFieldBuilder.js +1 -1
- package/src/sap/fe/test/builder/MdcFieldBuilder.js +1 -1
- package/src/sap/fe/test/builder/MdcFilterBarBuilder.js +1 -1
- package/src/sap/fe/test/builder/MdcFilterFieldBuilder.js +1 -1
- package/src/sap/fe/test/builder/MdcTableBuilder.js +15 -1
- package/src/sap/fe/test/builder/OverflowToolbarBuilder.js +1 -1
- package/src/sap/fe/test/builder/VMBuilder.js +1 -1
- package/src/sap/fe/test/internal/FEArrangements.js +1 -1
- package/src/sap/fe/test/internal/FEJourneyRunner.js +1 -1
- package/src/sap/fe/test/library.js +2 -2
- package/src/sap/fe/test/massEdit.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function(FooterAPI, Utils, OpaBuilder) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function(FooterActionsBase, Utils, OpaBuilder) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FooterAssertionsBase", "sap/fe/test/Utils", "sap/m/library"], function(FooterAssertionsBase, Utils, mLibrary) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(
|
|
6
6
|
["./FormAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "sap/fe/test/builder/MacroFieldBuilder"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./HeaderAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"], function(
|
|
6
6
|
HeaderAPI,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./HeaderLR", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"], function(
|
|
6
6
|
HeaderLR,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./BaseAPI", "sap/fe/test/Utils", "sap/fe/test/builder/KPIBuilder"], function(BaseAPI, Utils, KPIBuilder) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function(KPICardAPI, Utils, FEBuilder) {
|
|
6
6
|
"use strict";
|
|
@@ -178,5 +178,27 @@ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuild
|
|
|
178
178
|
);
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Checks the chart of the KPI card.
|
|
183
|
+
*
|
|
184
|
+
* @param {object} mProperties The properties to be checked on the chart (vizType). If null or empty, we just check if the chart is visible.
|
|
185
|
+
* @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
186
|
+
*/
|
|
187
|
+
KPICardAssertions.prototype.iSeeChart = function(mProperties) {
|
|
188
|
+
var oKPIBuilder = this.getBuilder();
|
|
189
|
+
|
|
190
|
+
var vChartMatcher = mProperties && Object.keys(mProperties).length ? FEBuilder.create(this).hasProperties(mProperties) : undefined;
|
|
191
|
+
|
|
192
|
+
var sDescription = vChartMatcher
|
|
193
|
+
? Utils.formatMessage("Checking card chart with properties '{0}'", mProperties)
|
|
194
|
+
: Utils.formatMessage("Checking card chart");
|
|
195
|
+
|
|
196
|
+
return this.prepareResult(
|
|
197
|
+
oKPIBuilder
|
|
198
|
+
.doOnKPICardChart(vChartMatcher)
|
|
199
|
+
.description(sDescription)
|
|
200
|
+
.execute()
|
|
201
|
+
);
|
|
202
|
+
};
|
|
181
203
|
return KPICardAssertions;
|
|
182
204
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], function(FEBuilder, OpaBuilder, Utils) {
|
|
6
6
|
"use strict";
|
|
@@ -91,5 +91,21 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
91
91
|
);
|
|
92
92
|
};
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Applies a matcher to the card chart.
|
|
96
|
+
*
|
|
97
|
+
* @param {sap.ui.test.matchers.Matcher} vMatcher The matcher to be applied to the chart
|
|
98
|
+
* @returns {sap.fe.test.builder.KPIBuilder} This instance
|
|
99
|
+
*/
|
|
100
|
+
KPIBuilder.prototype.doOnKPICardChart = function(vMatcher) {
|
|
101
|
+
var analyticalContentMatcher = vMatcher
|
|
102
|
+
? FEBuilder.create(this)
|
|
103
|
+
.hasType("sap.ui.integration.cards.AnalyticalContent")
|
|
104
|
+
.hasChildren(vMatcher)
|
|
105
|
+
: FEBuilder.create(this).hasType("sap.ui.integration.cards.AnalyticalContent");
|
|
106
|
+
|
|
107
|
+
return this.hasType("sap.ui.integration.widgets.Card").hasChildren(analyticalContentMatcher);
|
|
108
|
+
};
|
|
109
|
+
|
|
94
110
|
return KPIBuilder;
|
|
95
111
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(
|
|
6
6
|
["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/ui/mdc/enum/FieldDisplay", "sap/fe/test/Utils", "sap/ui/mdc/enum/ConditionValidated"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FEBuilder", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/DialogBuilder"], function(
|
|
6
6
|
FEBuilder,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(
|
|
6
6
|
[
|
|
@@ -446,6 +446,13 @@ sap.ui.define(
|
|
|
446
446
|
.isDialogElement()
|
|
447
447
|
.hasType("sap.m.StandardListItem")
|
|
448
448
|
.checkNumberOfMatches(iExpectedNumber)
|
|
449
|
+
.success(
|
|
450
|
+
OpaBuilder.create()
|
|
451
|
+
.isDialogElement()
|
|
452
|
+
.hasType("sap.m.Button")
|
|
453
|
+
.hasProperties({ icon: "sap-icon://decline" })
|
|
454
|
+
.doPress()
|
|
455
|
+
)
|
|
449
456
|
);
|
|
450
457
|
}
|
|
451
458
|
} else {
|
|
@@ -465,6 +472,13 @@ sap.ui.define(
|
|
|
465
472
|
.hasType("sap.m.StandardListItem")
|
|
466
473
|
.hasProperties({ title: sFieldName })
|
|
467
474
|
.checkNumberOfMatches(iExpectedNumber)
|
|
475
|
+
.success(
|
|
476
|
+
OpaBuilder.create()
|
|
477
|
+
.isDialogElement()
|
|
478
|
+
.hasType("sap.m.Button")
|
|
479
|
+
.hasProperties({ icon: "sap-icon://decline" })
|
|
480
|
+
.doPress()
|
|
481
|
+
)
|
|
468
482
|
);
|
|
469
483
|
}
|
|
470
484
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["sap/ui/test/OpaBuilder", "./FEBuilder", "sap/fe/test/Utils", "sap/ui/test/matchers/Interactable"], function(
|
|
6
6
|
OpaBuilder,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], function(FEBuilder, OpaBuilder, Utils) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* ! SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define(
|
|
@@ -27,7 +27,7 @@ sap.ui.define(
|
|
|
27
27
|
interfaces: [],
|
|
28
28
|
controls: [],
|
|
29
29
|
elements: [],
|
|
30
|
-
version: "1.
|
|
30
|
+
version: "1.96.4",
|
|
31
31
|
noLibraryCSS: true
|
|
32
32
|
});
|
|
33
33
|
|