@sapui5/sap.fe.test 1.128.0 → 1.129.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 +1 -1
- package/src/sap/fe/test/.library +1 -1
- package/src/sap/fe/test/BaseActions.js +0 -7
- package/src/sap/fe/test/BaseArrangements.js +0 -7
- package/src/sap/fe/test/BaseAssertions.js +0 -5
- package/src/sap/fe/test/Flexibility.js +0 -5
- package/src/sap/fe/test/JestTemplatingHelper.js +3 -11
- package/src/sap/fe/test/JestTemplatingHelper.tsx +2 -10
- package/src/sap/fe/test/JourneyRunner.js +0 -9
- package/src/sap/fe/test/ListReport.js +0 -14
- package/src/sap/fe/test/ObjectPage.js +0 -21
- package/src/sap/fe/test/Shell.js +0 -7
- package/src/sap/fe/test/TemplatePage.js +0 -17
- package/src/sap/fe/test/TemplatingTestUtils.js +0 -1
- package/src/sap/fe/test/UI5MockHelper.js +3 -17
- package/src/sap/fe/test/UI5MockHelper.ts +2 -16
- package/src/sap/fe/test/api/BaseAPI.js +0 -15
- package/src/sap/fe/test/api/ChartActions.js +0 -2
- package/src/sap/fe/test/api/ChartAssertions.js +0 -1
- package/src/sap/fe/test/api/CollaborationAPI.js +2 -9
- package/src/sap/fe/test/api/CollaborationAPI.ts +2 -9
- package/src/sap/fe/test/api/DialogAPI.js +0 -2
- package/src/sap/fe/test/api/DialogActions.js +0 -7
- package/src/sap/fe/test/api/DialogAssertions.js +0 -6
- package/src/sap/fe/test/api/DialogCreateActions.js +0 -2
- package/src/sap/fe/test/api/DialogCreateAssertions.js +0 -2
- package/src/sap/fe/test/api/DialogHelper.js +0 -1
- package/src/sap/fe/test/api/DialogMassEditActions.js +0 -4
- package/src/sap/fe/test/api/DialogMassEditAssertions.js +0 -5
- package/src/sap/fe/test/api/DialogMessageActions.js +0 -4
- package/src/sap/fe/test/api/DialogMessageAssertions.js +0 -4
- package/src/sap/fe/test/api/DialogType.js +0 -8
- package/src/sap/fe/test/api/DialogValueHelpActions.js +0 -12
- package/src/sap/fe/test/api/DialogValueHelpAssertions.js +0 -9
- package/src/sap/fe/test/api/EditState.js +0 -7
- package/src/sap/fe/test/api/FilterBarAPI.js +0 -6
- package/src/sap/fe/test/api/FilterBarActions.js +0 -12
- package/src/sap/fe/test/api/FilterBarAssertions.js +0 -10
- package/src/sap/fe/test/api/FooterAPI.js +0 -1
- package/src/sap/fe/test/api/FooterActionsBase.js +0 -2
- package/src/sap/fe/test/api/FooterActionsOP.js +0 -5
- package/src/sap/fe/test/api/FooterAssertionsBase.js +0 -3
- package/src/sap/fe/test/api/FooterAssertionsOP.js +0 -6
- package/src/sap/fe/test/api/FormAPI.js +0 -2
- package/src/sap/fe/test/api/FormActions.js +0 -8
- package/src/sap/fe/test/api/FormAssertions.js +0 -7
- package/src/sap/fe/test/api/HeaderAPI.js +0 -8
- package/src/sap/fe/test/api/HeaderActions.js +0 -14
- package/src/sap/fe/test/api/HeaderActionsLR.js +0 -4
- package/src/sap/fe/test/api/HeaderAssertions.js +0 -21
- package/src/sap/fe/test/api/HeaderAssertionsLR.js +0 -4
- package/src/sap/fe/test/api/HeaderLR.js +0 -2
- package/src/sap/fe/test/api/KPICardAPI.js +0 -1
- package/src/sap/fe/test/api/KPICardActions.js +0 -2
- package/src/sap/fe/test/api/KPICardAssertions.js +0 -8
- package/src/sap/fe/test/api/TableAPI.js +0 -13
- package/src/sap/fe/test/api/TableActions.js +0 -36
- package/src/sap/fe/test/api/TableAssertions.js +0 -28
- package/src/sap/fe/test/builder/FEBuilder.js +0 -5
- package/src/sap/fe/test/builder/KPIBuilder.js +0 -6
- package/src/sap/fe/test/builder/MacroFieldBuilder.js +0 -1
- package/src/sap/fe/test/builder/MdcFieldBuilder.js +0 -6
- package/src/sap/fe/test/builder/MdcFilterFieldBuilder.js +0 -2
- package/src/sap/fe/test/builder/MdcTableBuilder.js +0 -3
- package/src/sap/fe/test/builder/OverflowToolbarBuilder.js +12 -8
- package/src/sap/fe/test/builder/VMBuilder.js +0 -6
- package/src/sap/fe/test/internal/FEArrangements.js +0 -1
- package/src/sap/fe/test/library.js +2 -3
- package/src/sap/fe/test/library.ts +0 -1
|
@@ -57,10 +57,10 @@ sap.ui.define(
|
|
|
57
57
|
OverflowToolbarBuilder.prototype.doOnContent = function (vContentMatcher, vContentAction) {
|
|
58
58
|
var oOverflowToolbarBuilder = new FEBuilder(this.getOpaInstance(), this.build()).hasType("sap.m.OverflowToolbar"),
|
|
59
59
|
fnMatcherIsTextButton = function (oControl) {
|
|
60
|
-
if (oControl.isA("sap.fe.macros.ShareAPI")) {
|
|
61
|
-
// ShareAPI
|
|
62
|
-
// text property is on the MenuButton which is inside the shareAPI
|
|
63
|
-
// so we get the
|
|
60
|
+
if (oControl.isA("sap.fe.macros.ShareAPI") || oControl.isA("sap.fe.macros.DraftToggle")) {
|
|
61
|
+
// ShareAPI and DraftToggle don't have a text property
|
|
62
|
+
// text property is on the MenuButton which is inside the shareAPI, and on the Button inside DraftToggle BB
|
|
63
|
+
// so we get the control's content
|
|
64
64
|
return !!oControl.getContent().getText;
|
|
65
65
|
} else {
|
|
66
66
|
return !!oControl.getText;
|
|
@@ -89,8 +89,8 @@ sap.ui.define(
|
|
|
89
89
|
})
|
|
90
90
|
.do(function (oOverflowToolbar) {
|
|
91
91
|
var oToolbarButton = fnDeepAggregation(oOverflowToolbar)[0];
|
|
92
|
-
if (oToolbarButton.isA("sap.fe.macros.ShareAPI")) {
|
|
93
|
-
// MenuButton is inside the shareAPI so we do getContent
|
|
92
|
+
if (oToolbarButton.isA("sap.fe.macros.ShareAPI") || oToolbarButton.isA("sap.fe.macros.DraftToggle")) {
|
|
93
|
+
// MenuButton is inside the shareAPI and Button is inside DraftToggle BB so we do getContent
|
|
94
94
|
oToolbarButton = oToolbarButton.getContent();
|
|
95
95
|
}
|
|
96
96
|
var oButtonForAction =
|
|
@@ -117,11 +117,15 @@ sap.ui.define(
|
|
|
117
117
|
OpaBuilder.Matchers.not(
|
|
118
118
|
OpaBuilder.Matchers.aggregationMatcher("content", [vContentMatcher, FEBuilder.Matchers.states(mState)])
|
|
119
119
|
),
|
|
120
|
-
// for shareAPI look into the child menuButton
|
|
120
|
+
// for shareAPI and draftToggle look into the child (menuButton or Button)
|
|
121
121
|
OpaBuilder.Matchers.children(OpaBuilder.Matchers.match([vContentMatcher, FEBuilder.Matchers.states(mState)]))
|
|
122
122
|
);
|
|
123
123
|
} else {
|
|
124
|
-
oOverflowToolbarBuilder.
|
|
124
|
+
oOverflowToolbarBuilder.hasSome(
|
|
125
|
+
OpaBuilder.Matchers.aggregationMatcher("content", aMatchers),
|
|
126
|
+
// for DraftToggle look into child button
|
|
127
|
+
OpaBuilder.Matchers.children(OpaBuilder.Matchers.match([vContentMatcher, FEBuilder.Matchers.states(mState)]))
|
|
128
|
+
);
|
|
125
129
|
}
|
|
126
130
|
return this.doOpenOverflow().success(oOverflowToolbarBuilder);
|
|
127
131
|
};
|
|
@@ -20,7 +20,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Saves a variant under given name.
|
|
23
|
-
*
|
|
24
23
|
* @param {string} sVariantName The name of the new variant
|
|
25
24
|
* @param {boolean} bSetAsDefault
|
|
26
25
|
* @param {boolean} bApplyAutomatically
|
|
@@ -76,7 +75,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
76
75
|
|
|
77
76
|
/**
|
|
78
77
|
* Saves the current variant.
|
|
79
|
-
*
|
|
80
78
|
* @returns {sap.fe.test.builder.VMBuilder} This instance
|
|
81
79
|
* @public
|
|
82
80
|
* @ui5-restricted
|
|
@@ -97,7 +95,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
97
95
|
|
|
98
96
|
/**
|
|
99
97
|
* Select a variant under given name.
|
|
100
|
-
*
|
|
101
98
|
* @param {string} sVariantName The name of the variant to select
|
|
102
99
|
* @returns {sap.fe.test.builder.VMBuilder} This instance
|
|
103
100
|
* @public
|
|
@@ -122,7 +119,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
122
119
|
|
|
123
120
|
/**
|
|
124
121
|
* Removes a variant under given name.
|
|
125
|
-
*
|
|
126
122
|
* @param {string} sVariantName The name of the variant to remove
|
|
127
123
|
* @returns {sap.fe.test.builder.VMBuilder} This instance
|
|
128
124
|
* @public
|
|
@@ -170,7 +166,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
170
166
|
|
|
171
167
|
/**
|
|
172
168
|
* Selects a variant as the default.
|
|
173
|
-
*
|
|
174
169
|
* @param {string} sVariantName The name of the variant to be set as default
|
|
175
170
|
* @returns {sap.fe.test.builder.VMBuilder} `this` instance
|
|
176
171
|
* @public
|
|
@@ -211,7 +206,6 @@ sap.ui.define(["./FEBuilder", "sap/ui/test/OpaBuilder", "sap/fe/test/Utils"], fu
|
|
|
211
206
|
|
|
212
207
|
/**
|
|
213
208
|
* Resets the default variant to Standard.
|
|
214
|
-
*
|
|
215
209
|
* @returns {sap.fe.test.builder.VMBuilder} `this` instance
|
|
216
210
|
* @public
|
|
217
211
|
* @ui5-restricted
|
|
@@ -71,7 +71,6 @@ sap.ui.define(
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Fail the test if there are errors logged to the browser console.
|
|
74
|
-
*
|
|
75
74
|
* @param {Array<RegExp|string>} [aErrors] The allowed error messages. Either use regular expressions or strings. Pass undefined or an empty array to reject all error messages.
|
|
76
75
|
* @returns {*} The OPA promise
|
|
77
76
|
*/
|
|
@@ -7,7 +7,6 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/core/library"], function (Library, _li
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Test library for SAP Fiori elements
|
|
10
|
-
*
|
|
11
10
|
* @namespace
|
|
12
11
|
* @name sap.fe.test
|
|
13
12
|
* @public
|
|
@@ -22,9 +21,9 @@ sap.ui.define(["sap/ui/core/Lib", "sap/ui/core/library"], function (Library, _li
|
|
|
22
21
|
controls: [],
|
|
23
22
|
elements: [],
|
|
24
23
|
// eslint-disable-next-line no-template-curly-in-string
|
|
25
|
-
version: "1.
|
|
24
|
+
version: "1.129.1",
|
|
26
25
|
noLibraryCSS: true
|
|
27
26
|
});
|
|
28
27
|
return thisLib;
|
|
29
28
|
}, false);
|
|
30
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
29
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJ0aGlzTGliIiwiTGlicmFyeSIsImluaXQiLCJuYW1lIiwiZGVwZW5kZW5jaWVzIiwidHlwZXMiLCJpbnRlcmZhY2VzIiwiY29udHJvbHMiLCJlbGVtZW50cyIsInZlcnNpb24iLCJub0xpYnJhcnlDU1MiXSwic291cmNlUm9vdCI6Ii4iLCJzb3VyY2VzIjpbImxpYnJhcnkudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IExpYnJhcnkgZnJvbSBcInNhcC91aS9jb3JlL0xpYlwiO1xuaW1wb3J0IFwic2FwL3VpL2NvcmUvbGlicmFyeVwiO1xuXG4vKipcbiAqIFRlc3QgbGlicmFyeSBmb3IgU0FQIEZpb3JpIGVsZW1lbnRzXG4gKiBAbmFtZXNwYWNlXG4gKiBAbmFtZSBzYXAuZmUudGVzdFxuICogQHB1YmxpY1xuICovXG5cbi8vIGxpYnJhcnkgZGVwZW5kZW5jaWVzXG5jb25zdCB0aGlzTGliID0gTGlicmFyeS5pbml0KHtcblx0bmFtZTogXCJzYXAuZmUudGVzdFwiLFxuXHRkZXBlbmRlbmNpZXM6IFtcInNhcC51aS5jb3JlXCJdLFxuXHR0eXBlczogW10sXG5cdGludGV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