@sapui5/sap.fe.test 1.128.0 → 1.129.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 +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
package/package.json
CHANGED
package/src/sap/fe/test/.library
CHANGED
|
@@ -11,7 +11,6 @@ sap.ui.define(
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Constructs a new {@link sap.fe.test.Opa5} instance.
|
|
14
|
-
*
|
|
15
14
|
* @class All common actions (<code>When</code>) for all Opa tests are defined here.
|
|
16
15
|
* @alias sap.fe.test.BaseActions
|
|
17
16
|
* @public
|
|
@@ -22,7 +21,6 @@ sap.ui.define(
|
|
|
22
21
|
*
|
|
23
22
|
* NOTE: This function ensures that a certain UI state is maintained in some exceptional cases.
|
|
24
23
|
* This function isn't usually called directly in a journey.
|
|
25
|
-
*
|
|
26
24
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
27
25
|
* @function
|
|
28
26
|
* @name sap.fe.test.BaseActions#iClosePopover
|
|
@@ -33,7 +31,6 @@ sap.ui.define(
|
|
|
33
31
|
},
|
|
34
32
|
/**
|
|
35
33
|
* Simulates the pressing of the Esc key for the element in focus.
|
|
36
|
-
*
|
|
37
34
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
38
35
|
* @function
|
|
39
36
|
* @name sap.fe.test.BaseActions#iPressEscape
|
|
@@ -50,7 +47,6 @@ sap.ui.define(
|
|
|
50
47
|
* Waits for the specified amount of milliseconds.
|
|
51
48
|
*
|
|
52
49
|
* NOTE: Use this function with care, as waiting for a specified timeframe only makes sense in exceptional cases.
|
|
53
|
-
*
|
|
54
50
|
* @param {number} iMilliseconds The amount of milliseconds to wait before proceeding
|
|
55
51
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
56
52
|
* @function
|
|
@@ -77,7 +73,6 @@ sap.ui.define(
|
|
|
77
73
|
* Emulates a browser back navigation.
|
|
78
74
|
*
|
|
79
75
|
* NOTE: If the application is executed within the FLP, use {@link sap.fe.test.Shell#iNavigateBack} instead.
|
|
80
|
-
*
|
|
81
76
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
82
77
|
* @function
|
|
83
78
|
* @name sap.fe.test.BaseActions#iNavigateBack
|
|
@@ -94,7 +89,6 @@ sap.ui.define(
|
|
|
94
89
|
},
|
|
95
90
|
/**
|
|
96
91
|
* Emulates a browser forward navigation.
|
|
97
|
-
*
|
|
98
92
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
99
93
|
* @function
|
|
100
94
|
* @name sap.fe.test.BaseActions#iNavigateForward
|
|
@@ -112,7 +106,6 @@ sap.ui.define(
|
|
|
112
106
|
/**
|
|
113
107
|
* Changes the timeout to the specified amount of seconds.
|
|
114
108
|
* The new timeout will be active for all waitFor calls to follow until a new timeout is set.
|
|
115
|
-
*
|
|
116
109
|
* @param {number} iSeconds The amount of seconds to be set for the timeout
|
|
117
110
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
118
111
|
* @function
|
|
@@ -11,7 +11,6 @@ sap.ui.define(
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Constructs a new {@link sap.fe.test.Opa5} instance.
|
|
14
|
-
*
|
|
15
14
|
* @param {object} mSettings The settings object required for launching the application
|
|
16
15
|
* @param {string} mSettings.launchUrl The URL to the launching page (usually a FLP.html)
|
|
17
16
|
* @param {Object<string, string | boolean>} mSettings.launchParameters The URL launch parameters
|
|
@@ -41,7 +40,6 @@ sap.ui.define(
|
|
|
41
40
|
|
|
42
41
|
/**
|
|
43
42
|
* Starts the app in an IFrame, using the <code>launchUrl</code> and <code>launchParameters</code> provided via the settings object of the {@link sap.fe.test.BaseArrangements#constructor}.
|
|
44
|
-
*
|
|
45
43
|
* @param {string} [sAppHash] The app hash
|
|
46
44
|
* @param {object} [mInUrlParameters] A map with additional URL parameters
|
|
47
45
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
@@ -78,7 +76,6 @@ sap.ui.define(
|
|
|
78
76
|
*
|
|
79
77
|
* NOTE: The function itself is not meant to be called directly within a journey.
|
|
80
78
|
* Instead, it can be overwritten to add custom clean-up functionality when calling {@link sap.fe.test.BaseArrangements#iResetTestData}.
|
|
81
|
-
*
|
|
82
79
|
* @returns {Promise} A <code>Promise</code> object
|
|
83
80
|
* @function
|
|
84
81
|
* @name sap.fe.test.BaseArrangements#resetTestData
|
|
@@ -118,7 +115,6 @@ sap.ui.define(
|
|
|
118
115
|
|
|
119
116
|
/**
|
|
120
117
|
* Resets the test data.
|
|
121
|
-
*
|
|
122
118
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
123
119
|
* @function
|
|
124
120
|
* @name sap.fe.test.BaseArrangements#iResetTestData
|
|
@@ -151,7 +147,6 @@ sap.ui.define(
|
|
|
151
147
|
|
|
152
148
|
/**
|
|
153
149
|
* Resets the mock data.
|
|
154
|
-
*
|
|
155
150
|
* @param {object} [oAppInfo] The application id or a uri pointing to the service. One of the following properties needs to be provided within the parameter:
|
|
156
151
|
* <code><pre>
|
|
157
152
|
* {
|
|
@@ -196,7 +191,6 @@ sap.ui.define(
|
|
|
196
191
|
|
|
197
192
|
/**
|
|
198
193
|
* Tears down the current application.
|
|
199
|
-
*
|
|
200
194
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
201
195
|
* @function
|
|
202
196
|
* @name sap.fe.test.BaseArrangements#iTearDownMyApp
|
|
@@ -215,7 +209,6 @@ sap.ui.define(
|
|
|
215
209
|
|
|
216
210
|
/**
|
|
217
211
|
* Simulates a refresh of the page by tearing it down and then restarting it with the very same hash.
|
|
218
|
-
*
|
|
219
212
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
220
213
|
* @function
|
|
221
214
|
* @name sap.fe.test.BaseArrangements#iRestartMyApp
|
|
@@ -11,7 +11,6 @@ sap.ui.define(
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Constructs a new {@link sap.fe.test.Opa5} instance.
|
|
14
|
-
*
|
|
15
14
|
* @class All common assertions (<code>Then</code>) for all Opa tests are defined here.
|
|
16
15
|
* @alias sap.fe.test.BaseAssertions
|
|
17
16
|
* @public
|
|
@@ -19,7 +18,6 @@ sap.ui.define(
|
|
|
19
18
|
var BaseAssertions = Opa5.extend("sap.fe.test.BaseAssertions", {
|
|
20
19
|
/**
|
|
21
20
|
* Checks whether a {@link sap.m.MessagePage} with given message is shown.
|
|
22
|
-
*
|
|
23
21
|
* @param {string} sMessage The message shown on the message page
|
|
24
22
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
25
23
|
* @function
|
|
@@ -36,7 +34,6 @@ sap.ui.define(
|
|
|
36
34
|
},
|
|
37
35
|
/**
|
|
38
36
|
* Checks whether a {@link sap.m.Page} is shown.
|
|
39
|
-
*
|
|
40
37
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
41
38
|
* @function
|
|
42
39
|
* @alias sap.fe.test.BaseAssertions#iSeePage
|
|
@@ -47,7 +44,6 @@ sap.ui.define(
|
|
|
47
44
|
},
|
|
48
45
|
/**
|
|
49
46
|
* Checks whether a {@link sap.m.IllustratedMessage} with given message is shown.
|
|
50
|
-
*
|
|
51
47
|
* @param {string} sMessage The message shown on the page
|
|
52
48
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
53
49
|
* @function
|
|
@@ -59,7 +55,6 @@ sap.ui.define(
|
|
|
59
55
|
},
|
|
60
56
|
/**
|
|
61
57
|
* Checks whether a {@link sap.m.MessageToast} with the given text is shown.
|
|
62
|
-
*
|
|
63
58
|
* @param {string} sText The text shown in the MessageToast
|
|
64
59
|
* @returns {sap.ui.test.OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
65
60
|
* @function
|
|
@@ -9,7 +9,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a RegExp for HeaderFacetContainer Facet ID.
|
|
12
|
-
*
|
|
13
12
|
* @param {string} [sFacetId] The name of the Facet
|
|
14
13
|
* @returns {object} A RegExp matching the Facet ID.
|
|
15
14
|
* @private
|
|
@@ -20,7 +19,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
|
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Creates a RegExp for Section Facet ID.
|
|
23
|
-
*
|
|
24
22
|
* @param {string} [sId] The name of the Section Facet
|
|
25
23
|
* @returns {object} A RegExp matching the Section Facet ID
|
|
26
24
|
* @private
|
|
@@ -31,7 +29,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
|
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* Creates a RegExp for FormElement ID for a field added via RTA.
|
|
34
|
-
*
|
|
35
32
|
* @param {string} [sId] The ID of the Field including the RTA specific part, i.e. GeneralInformation::Content_sap.fe.manageitems.TechnicalTestingService.LineItems_dataField
|
|
36
33
|
* @returns {object} A RegExp matching the FormElement ID.
|
|
37
34
|
* @private
|
|
@@ -42,7 +39,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
|
|
|
42
39
|
|
|
43
40
|
/**
|
|
44
41
|
* Generates a matcher function to match the ID of the referenced control of an overlay.
|
|
45
|
-
*
|
|
46
42
|
* @param {string | RegExp} [vId] The name of the Facet
|
|
47
43
|
* @param {boolean} [bCheckParent] Set to true to check the parent element of the control
|
|
48
44
|
* @returns {object} A RegExp matching the Facet ID.
|
|
@@ -334,7 +330,6 @@ sap.ui.define(["sap/ui/test/Opa5", "sap/ui/test/OpaBuilder", "sap/ui/qunit/QUnit
|
|
|
334
330
|
|
|
335
331
|
/**
|
|
336
332
|
* Presses the according Button for the Reorder Process
|
|
337
|
-
*
|
|
338
333
|
* @param {string} [sLabel] label of column which should be reordered
|
|
339
334
|
* @param {number} [nNewPlace] which of the four reorder buttons should be pressed (0-3), effectively changes where the selected Label should move to
|
|
340
335
|
* @private
|