@sapui5/sap.fe.test 1.143.0 → 1.145.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 +6 -6
- package/src/sap/fe/test/BaseArrangements.js +5 -5
- package/src/sap/fe/test/BaseAssertions.js +4 -4
- package/src/sap/fe/test/JestTemplatingHelper.js +92 -14
- package/src/sap/fe/test/JestTemplatingHelper.tsx +132 -15
- package/src/sap/fe/test/ObjectPage.js +6 -0
- package/src/sap/fe/test/UI5MockHelper.js +6 -2
- package/src/sap/fe/test/UI5MockHelper.ts +10 -1
- package/src/sap/fe/test/api/APIHelper.js +38 -21
- package/src/sap/fe/test/api/BaseAPI.js +1 -1
- package/src/sap/fe/test/api/DialogAssertions.js +145 -121
- package/src/sap/fe/test/api/FormActions.js +17 -0
- package/src/sap/fe/test/api/HeaderActions.js +2 -4
- package/src/sap/fe/test/api/HeaderAssertions.js +165 -6
- package/src/sap/fe/test/api/TableAPI.js +2 -2
- package/src/sap/fe/test/builder/FEBuilder.js +1 -1
- package/src/sap/fe/test/builder/MacroFieldBuilder.js +2 -0
- package/src/sap/fe/test/builder/MdcTableBuilder.js +4 -4
- package/src/sap/fe/test/builder/OverflowToolbarBuilder.js +1 -1
- package/src/sap/fe/test/library.js +1 -1
package/package.json
CHANGED
package/src/sap/fe/test/.library
CHANGED
|
@@ -21,7 +21,7 @@ sap.ui.define(
|
|
|
21
21
|
*
|
|
22
22
|
* NOTE: This function ensures that a certain UI state is maintained in some exceptional cases.
|
|
23
23
|
* This function isn't usually called directly in a journey.
|
|
24
|
-
* @returns {sap
|
|
24
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
25
25
|
* @function
|
|
26
26
|
* @name sap.fe.test.BaseActions#iClosePopover
|
|
27
27
|
* @public
|
|
@@ -31,7 +31,7 @@ sap.ui.define(
|
|
|
31
31
|
},
|
|
32
32
|
/**
|
|
33
33
|
* Simulates the pressing of the Esc key for the element in focus.
|
|
34
|
-
* @returns {sap
|
|
34
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
35
35
|
* @function
|
|
36
36
|
* @name sap.fe.test.BaseActions#iPressEscape
|
|
37
37
|
* @public
|
|
@@ -48,7 +48,7 @@ sap.ui.define(
|
|
|
48
48
|
*
|
|
49
49
|
* NOTE: Use this function with care, as waiting for a specified timeframe only makes sense in exceptional cases.
|
|
50
50
|
* @param {number} iMilliseconds The amount of milliseconds to wait before proceeding
|
|
51
|
-
* @returns {sap
|
|
51
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
52
52
|
* @function
|
|
53
53
|
* @name sap.fe.test.BaseActions#iWait
|
|
54
54
|
* @private
|
|
@@ -73,7 +73,7 @@ sap.ui.define(
|
|
|
73
73
|
* Emulates a browser back navigation.
|
|
74
74
|
*
|
|
75
75
|
* NOTE: If the application is executed within the FLP, use {@link sap.fe.test.Shell#iNavigateBack} instead.
|
|
76
|
-
* @returns {sap
|
|
76
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
77
77
|
* @function
|
|
78
78
|
* @name sap.fe.test.BaseActions#iNavigateBack
|
|
79
79
|
* @private
|
|
@@ -89,7 +89,7 @@ sap.ui.define(
|
|
|
89
89
|
},
|
|
90
90
|
/**
|
|
91
91
|
* Emulates a browser forward navigation.
|
|
92
|
-
* @returns {sap
|
|
92
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
93
93
|
* @function
|
|
94
94
|
* @name sap.fe.test.BaseActions#iNavigateForward
|
|
95
95
|
* @private
|
|
@@ -107,7 +107,7 @@ sap.ui.define(
|
|
|
107
107
|
* Changes the timeout to the specified amount of seconds.
|
|
108
108
|
* The new timeout will be active for all waitFor calls to follow until a new timeout is set.
|
|
109
109
|
* @param {number} iSeconds The amount of seconds to be set for the timeout
|
|
110
|
-
* @returns {sap
|
|
110
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
111
111
|
* @function
|
|
112
112
|
* @name sap.fe.test.BaseActions#iChangeTimeout
|
|
113
113
|
* @private
|
|
@@ -42,7 +42,7 @@ sap.ui.define(
|
|
|
42
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}.
|
|
43
43
|
* @param {string} [sAppHash] The app hash
|
|
44
44
|
* @param {object} [mInUrlParameters] A map with additional URL parameters
|
|
45
|
-
* @returns {sap
|
|
45
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
46
46
|
* @function
|
|
47
47
|
* @name sap.fe.test.BaseArrangements#iStartMyApp
|
|
48
48
|
* @public
|
|
@@ -116,7 +116,7 @@ sap.ui.define(
|
|
|
116
116
|
/**
|
|
117
117
|
* Resets the test data.
|
|
118
118
|
* @param {boolean} [bIgnoreRedeploy] Ignore the redeploy
|
|
119
|
-
* @returns {sap
|
|
119
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
120
120
|
* @function
|
|
121
121
|
* @name sap.fe.test.BaseArrangements#iResetTestData
|
|
122
122
|
* @public
|
|
@@ -166,7 +166,7 @@ sap.ui.define(
|
|
|
166
166
|
* }
|
|
167
167
|
* </pre></code>
|
|
168
168
|
* NOTE: When passing the AppId, the application needs to be running already. Calling the function before the application is started can be done by passing the ServiceUri.
|
|
169
|
-
* @returns {sap
|
|
169
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
170
170
|
* @function
|
|
171
171
|
* @name sap.fe.test.BaseArrangements#iResetMockData
|
|
172
172
|
* @public
|
|
@@ -202,7 +202,7 @@ sap.ui.define(
|
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
* Tears down the current application.
|
|
205
|
-
* @returns {sap
|
|
205
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
206
206
|
* @function
|
|
207
207
|
* @name sap.fe.test.BaseArrangements#iTearDownMyApp
|
|
208
208
|
* @public
|
|
@@ -220,7 +220,7 @@ sap.ui.define(
|
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Simulates a refresh of the page by tearing it down and then restarting it with the very same hash.
|
|
223
|
-
* @returns {sap
|
|
223
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
224
224
|
* @function
|
|
225
225
|
* @name sap.fe.test.BaseArrangements#iRestartMyApp
|
|
226
226
|
* @public
|
|
@@ -19,7 +19,7 @@ sap.ui.define(
|
|
|
19
19
|
/**
|
|
20
20
|
* Checks whether a {@link sap.m.MessagePage} with given message is shown.
|
|
21
21
|
* @param {string} sMessage The message shown on the message page
|
|
22
|
-
* @returns {sap
|
|
22
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
23
23
|
* @function
|
|
24
24
|
* @name sap.fe.test.BaseAssertions#iSeeMessagePage
|
|
25
25
|
* @public
|
|
@@ -34,7 +34,7 @@ sap.ui.define(
|
|
|
34
34
|
},
|
|
35
35
|
/**
|
|
36
36
|
* Checks whether a {@link sap.m.Page} is shown.
|
|
37
|
-
* @returns {sap
|
|
37
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
38
38
|
* @function
|
|
39
39
|
* @alias sap.fe.test.BaseAssertions#iSeePage
|
|
40
40
|
* @public
|
|
@@ -45,7 +45,7 @@ sap.ui.define(
|
|
|
45
45
|
/**
|
|
46
46
|
* Checks whether a {@link sap.m.IllustratedMessage} with given message is shown.
|
|
47
47
|
* @param {string} sMessage The message shown on the page
|
|
48
|
-
* @returns {sap
|
|
48
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
49
49
|
* @function
|
|
50
50
|
* @alias sap.fe.test.BaseAssertions#iSeeIllustratedMessage
|
|
51
51
|
* @public
|
|
@@ -56,7 +56,7 @@ sap.ui.define(
|
|
|
56
56
|
/**
|
|
57
57
|
* Checks whether a {@link sap.m.MessageToast} with the given text is shown.
|
|
58
58
|
* @param {string} sText The text shown in the MessageToast
|
|
59
|
-
* @returns {sap
|
|
59
|
+
* @returns {module:sap/ui/test/OpaBuilder} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
|
|
60
60
|
* @function
|
|
61
61
|
* @name sap.fe.test.BaseAssertions#iSeeMessageToast
|
|
62
62
|
* @public
|