@sapui5/sap.fe.test 1.109.0 → 1.110.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.
Files changed (84) hide show
  1. package/README.md +5 -1
  2. package/package.json +8 -6
  3. package/src/sap/fe/test/.library +17 -18
  4. package/src/sap/fe/test/BaseActions.js +3 -2
  5. package/src/sap/fe/test/BaseArrangements.js +3 -2
  6. package/src/sap/fe/test/BaseAssertions.js +3 -2
  7. package/src/sap/fe/test/CollaborationClient.js +12 -5
  8. package/src/sap/fe/test/CollaborationClient.ts +12 -1
  9. package/src/sap/fe/test/ConfirmDialog.js +12 -11
  10. package/src/sap/fe/test/FCLView.js +16 -15
  11. package/src/sap/fe/test/FeMocks.js +1 -11
  12. package/src/sap/fe/test/Flexibility.js +12 -7
  13. package/src/sap/fe/test/FlexibleColumnLayout.js +12 -11
  14. package/src/sap/fe/test/JestFlexibilityHelper.js +113 -102
  15. package/src/sap/fe/test/JestFlexibilityHelper.ts +112 -99
  16. package/src/sap/fe/test/JestTemplatingHelper.js +73 -170
  17. package/src/sap/fe/test/JestTemplatingHelper.ts +53 -39
  18. package/src/sap/fe/test/JourneyRunner.js +3 -2
  19. package/src/sap/fe/test/ListReport.js +3 -2
  20. package/src/sap/fe/test/LocationUtil.js +3 -2
  21. package/src/sap/fe/test/ObjectPage.js +121 -17
  22. package/src/sap/fe/test/Shell.js +9 -4
  23. package/src/sap/fe/test/Stubs.js +18 -17
  24. package/src/sap/fe/test/TemplatePage.js +3 -2
  25. package/src/sap/fe/test/TemplatingTestUtils.js +3 -2
  26. package/src/sap/fe/test/UI5MockHelper.js +39 -72
  27. package/src/sap/fe/test/UI5MockHelper.ts +3 -0
  28. package/src/sap/fe/test/Utils.js +4 -3
  29. package/src/sap/fe/test/api/APIHelper.js +3 -2
  30. package/src/sap/fe/test/api/BaseAPI.js +3 -2
  31. package/src/sap/fe/test/api/ChartActions.js +3 -2
  32. package/src/sap/fe/test/api/ChartAssertions.js +3 -2
  33. package/src/sap/fe/test/api/CollaborationAPI.js +2 -30
  34. package/src/sap/fe/test/api/DialogAPI.js +3 -2
  35. package/src/sap/fe/test/api/DialogActions.js +3 -2
  36. package/src/sap/fe/test/api/DialogAssertions.js +4 -3
  37. package/src/sap/fe/test/api/DialogCreateActions.js +6 -5
  38. package/src/sap/fe/test/api/DialogCreateAssertions.js +48 -49
  39. package/src/sap/fe/test/api/DialogHelper.js +4 -3
  40. package/src/sap/fe/test/api/DialogMassEditActions.js +3 -2
  41. package/src/sap/fe/test/api/DialogMassEditAssertions.js +3 -2
  42. package/src/sap/fe/test/api/DialogMessageActions.js +3 -2
  43. package/src/sap/fe/test/api/DialogMessageAssertions.js +82 -79
  44. package/src/sap/fe/test/api/DialogType.js +3 -2
  45. package/src/sap/fe/test/api/DialogValueHelpActions.js +3 -2
  46. package/src/sap/fe/test/api/DialogValueHelpAssertions.js +3 -2
  47. package/src/sap/fe/test/api/EditState.js +4 -3
  48. package/src/sap/fe/test/api/FilterBarAPI.js +3 -2
  49. package/src/sap/fe/test/api/FilterBarActions.js +3 -2
  50. package/src/sap/fe/test/api/FilterBarAssertions.js +3 -2
  51. package/src/sap/fe/test/api/FooterAPI.js +5 -4
  52. package/src/sap/fe/test/api/FooterActionsBase.js +3 -2
  53. package/src/sap/fe/test/api/FooterActionsOP.js +3 -2
  54. package/src/sap/fe/test/api/FooterAssertionsBase.js +3 -2
  55. package/src/sap/fe/test/api/FooterAssertionsOP.js +3 -2
  56. package/src/sap/fe/test/api/FormAPI.js +3 -2
  57. package/src/sap/fe/test/api/FormActions.js +3 -2
  58. package/src/sap/fe/test/api/FormAssertions.js +3 -2
  59. package/src/sap/fe/test/api/HeaderAPI.js +3 -2
  60. package/src/sap/fe/test/api/HeaderActions.js +3 -2
  61. package/src/sap/fe/test/api/HeaderActionsLR.js +3 -2
  62. package/src/sap/fe/test/api/HeaderAssertions.js +3 -2
  63. package/src/sap/fe/test/api/HeaderAssertionsLR.js +3 -2
  64. package/src/sap/fe/test/api/HeaderLR.js +3 -2
  65. package/src/sap/fe/test/api/KPICardAPI.js +5 -4
  66. package/src/sap/fe/test/api/KPICardActions.js +7 -11
  67. package/src/sap/fe/test/api/KPICardAssertions.js +3 -2
  68. package/src/sap/fe/test/api/TableAPI.js +5 -4
  69. package/src/sap/fe/test/api/TableActions.js +16 -9
  70. package/src/sap/fe/test/api/TableAssertions.js +8 -7
  71. package/src/sap/fe/test/builder/DialogBuilder.js +99 -102
  72. package/src/sap/fe/test/builder/FEBuilder.js +3 -2
  73. package/src/sap/fe/test/builder/KPIBuilder.js +16 -25
  74. package/src/sap/fe/test/builder/MacroFieldBuilder.js +4 -2
  75. package/src/sap/fe/test/builder/MdcFieldBuilder.js +3 -2
  76. package/src/sap/fe/test/builder/MdcFilterBarBuilder.js +3 -2
  77. package/src/sap/fe/test/builder/MdcFilterFieldBuilder.js +3 -2
  78. package/src/sap/fe/test/builder/MdcTableBuilder.js +186 -95
  79. package/src/sap/fe/test/builder/OverflowToolbarBuilder.js +3 -2
  80. package/src/sap/fe/test/builder/VMBuilder.js +3 -2
  81. package/src/sap/fe/test/internal/ConsoleErrorChecker.js +13 -48
  82. package/src/sap/fe/test/internal/FEArrangements.js +3 -2
  83. package/src/sap/fe/test/internal/FEJourneyRunner.js +5 -3
  84. package/src/sap/fe/test/library.js +3 -2
@@ -1,87 +1,90 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
- sap.ui.define(["./DialogAssertions", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "sap/fe/test/Utils"], function(
7
- DialogAssertions,
8
- OpaBuilder,
9
- FEBuilder,
10
- Utils
11
- ) {
12
- "use strict";
7
+ sap.ui.define(
8
+ ["./DialogAssertions", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "sap/fe/test/Utils"],
9
+ function (DialogAssertions, OpaBuilder, FEBuilder, Utils) {
10
+ "use strict";
13
11
 
14
- /**
15
- * Constructs a new DialogMessageActions instance.
16
- *
17
- * @param {sap.fe.test.builder.DialogBuilder} oDialogBuilder The {@link sap.fe.test.builder.DialogBuilder} instance used to interact with the UI
18
- * @param {string} [vDialogDescription] Description (optional) of the dialog to be used for logging messages
19
- * @returns {sap.fe.test.api.DialogMessageAssertions} The new instance
20
- * @extends sap.fe.test.api.DialogAssertions
21
- * @alias sap.fe.test.api.DialogMessageAssertions
22
- * @class
23
- * @hideconstructor
24
- * @public
25
- */
26
- var DialogMessageAssertions = function(oDialogBuilder, vDialogDescription) {
27
- return DialogAssertions.call(this, oDialogBuilder, vDialogDescription, 0);
28
- };
29
- DialogMessageAssertions.prototype = Object.create(DialogAssertions.prototype);
30
- DialogMessageAssertions.prototype.constructor = DialogMessageAssertions;
31
- DialogMessageAssertions.prototype.isAction = false;
12
+ /**
13
+ * Constructs a new DialogMessageActions instance.
14
+ *
15
+ * @param {sap.fe.test.builder.DialogBuilder} oDialogBuilder The {@link sap.fe.test.builder.DialogBuilder} instance used to interact with the UI
16
+ * @param {string} [vDialogDescription] Description (optional) of the dialog to be used for logging messages
17
+ * @returns {sap.fe.test.api.DialogMessageAssertions} The new instance
18
+ * @extends sap.fe.test.api.DialogAssertions
19
+ * @alias sap.fe.test.api.DialogMessageAssertions
20
+ * @class
21
+ * @hideconstructor
22
+ * @public
23
+ */
24
+ var DialogMessageAssertions = function (oDialogBuilder, vDialogDescription) {
25
+ return DialogAssertions.call(this, oDialogBuilder, vDialogDescription, 0);
26
+ };
27
+ DialogMessageAssertions.prototype = Object.create(DialogAssertions.prototype);
28
+ DialogMessageAssertions.prototype.constructor = DialogMessageAssertions;
29
+ DialogMessageAssertions.prototype.isAction = false;
32
30
 
33
- /**
34
- * Checks the <code>Back</code> action on the message dialog.
35
- *
36
- * @param {object} [mState] Defines the expected state of the button
37
- * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
38
- * @public
39
- */
40
- DialogMessageAssertions.prototype.iCheckBack = function(mState) {
41
- return this.prepareResult(
42
- this.getBuilder()
43
- .hasHeaderButton(OpaBuilder.Matchers.properties({ icon: "sap-icon://nav-back" }), mState)
44
- .description(
45
- Utils.formatMessage("Checking that dialog '{0}' has a back button with state '{1}'", this.getIdentifier(), mState)
46
- )
47
- .execute()
48
- );
49
- };
31
+ /**
32
+ * Checks the <code>Back</code> action on the message dialog.
33
+ *
34
+ * @param {object} [mState] Defines the expected state of the button
35
+ * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
36
+ * @public
37
+ */
38
+ DialogMessageAssertions.prototype.iCheckBack = function (mState) {
39
+ return this.prepareResult(
40
+ this.getBuilder()
41
+ .hasHeaderButton(OpaBuilder.Matchers.properties({ icon: "sap-icon://nav-back" }), mState)
42
+ .description(
43
+ Utils.formatMessage("Checking that dialog '{0}' has a back button with state '{1}'", this.getIdentifier(), mState)
44
+ )
45
+ .execute()
46
+ );
47
+ };
50
48
 
51
- /**
52
- * Checks the <code>Refresh</code> action on the dialog.
53
- *
54
- * @param {object} [mState] Defines the expected state of the button
55
- * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
56
- * @public
57
- */
58
- DialogMessageAssertions.prototype.iCheckRefresh = function(mState) {
59
- return this.prepareResult(
60
- this.getBuilder()
61
- .hasFooterButton(OpaBuilder.Matchers.resourceBundle("text", "sap.fe.core", "C_COMMON_SAPFE_REFRESH"), mState)
62
- .description(
63
- Utils.formatMessage("Checking that dialog '{0}' has a refresh button with state '{1}'", this.getIdentifier(), mState)
64
- )
65
- .execute()
66
- );
67
- };
49
+ /**
50
+ * Checks the <code>Refresh</code> action on the dialog.
51
+ *
52
+ * @param {object} [mState] Defines the expected state of the button
53
+ * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
54
+ * @public
55
+ */
56
+ DialogMessageAssertions.prototype.iCheckRefresh = function (mState) {
57
+ return this.prepareResult(
58
+ this.getBuilder()
59
+ .hasFooterButton(OpaBuilder.Matchers.resourceBundle("text", "sap.fe.core", "C_COMMON_SAPFE_REFRESH"), mState)
60
+ .description(
61
+ Utils.formatMessage(
62
+ "Checking that dialog '{0}' has a refresh button with state '{1}'",
63
+ this.getIdentifier(),
64
+ mState
65
+ )
66
+ )
67
+ .execute()
68
+ );
69
+ };
68
70
 
69
- /**
70
- * Checks whether a certain message is shown in the dialog.
71
- *
72
- * @param {object} [oMessage] Defines the expected state of the message, e.g. <code>{ title: "My message" }</code>
73
- * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
74
- * @public
75
- */
76
- DialogMessageAssertions.prototype.iCheckMessage = function(oMessage) {
77
- return this.prepareResult(
78
- this.getBuilder()
79
- .hasContent(FEBuilder.Matchers.states({ controlType: "sap.m.MessageView" }), true)
80
- .hasAggregation("items", OpaBuilder.Matchers.properties(oMessage))
81
- .description(Utils.formatMessage("Checking dialog '{0}' having a message '{1}' ", this.getIdentifier(), oMessage))
82
- .execute()
83
- );
84
- };
71
+ /**
72
+ * Checks whether a certain message is shown in the dialog.
73
+ *
74
+ * @param {object} [oMessage] Defines the expected state of the message, e.g. <code>{ title: "My message" }</code>
75
+ * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
76
+ * @public
77
+ */
78
+ DialogMessageAssertions.prototype.iCheckMessage = function (oMessage) {
79
+ return this.prepareResult(
80
+ this.getBuilder()
81
+ .hasContent(FEBuilder.Matchers.states({ controlType: "sap.m.MessageView" }), true)
82
+ .hasAggregation("items", OpaBuilder.Matchers.properties(oMessage))
83
+ .description(Utils.formatMessage("Checking dialog '{0}' having a message '{1}' ", this.getIdentifier(), oMessage))
84
+ .execute()
85
+ );
86
+ };
85
87
 
86
- return DialogMessageAssertions;
87
- });
88
+ return DialogMessageAssertions;
89
+ }
90
+ );
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [],
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,11 +1,12 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  ["sap/fe/macros/filter/DraftEditState"],
8
- function(EditState) {
9
+ function (EditState) {
9
10
  "use strict";
10
11
 
11
12
  /**
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -11,7 +12,7 @@ sap.ui.define(
11
12
  "sap/ui/test/OpaBuilder",
12
13
  "sap/fe/test/builder/FEBuilder"
13
14
  ],
14
- function(BaseAPI, Utils, OverflowToolbarBuilder, OpaBuilder, FEBuilder) {
15
+ function (BaseAPI, Utils, OverflowToolbarBuilder, OpaBuilder, FEBuilder) {
15
16
  "use strict";
16
17
 
17
18
  /**
@@ -23,7 +24,7 @@ sap.ui.define(
23
24
  * @class
24
25
  * @private
25
26
  */
26
- var FooterAPI = function(oOverflowToolbarBuilder, vFooterDescription) {
27
+ var FooterAPI = function (oOverflowToolbarBuilder, vFooterDescription) {
27
28
  if (!Utils.isOfType(oOverflowToolbarBuilder, OverflowToolbarBuilder)) {
28
29
  throw new Error("oOverflowToolbarBuilder parameter must be a OverflowToolbarBuilder instance");
29
30
  }
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(["./FooterAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function (FooterAPI, Utils, OpaBuilder) {
7
8
  "use strict";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(["./FooterActionsBase", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder"], function (FooterActionsBase, Utils, OpaBuilder) {
7
8
  "use strict";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(["./FooterAPI", "sap/fe/test/Utils"], function (FooterAPI, Utils) {
7
8
  "use strict";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(["./FooterAssertionsBase", "sap/fe/test/Utils", "sap/m/library"], function (FooterAssertionsBase, Utils, mLibrary) {
7
8
  "use strict";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  ["./FormAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "sap/fe/test/builder/MacroFieldBuilder"],
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  ["./HeaderAPI", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"],
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  ["./HeaderLR", "sap/fe/test/Utils", "sap/ui/test/OpaBuilder", "sap/fe/test/builder/FEBuilder", "./APIHelper"],
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -1,9 +1,10 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
- sap.ui.define(["./BaseAPI", "sap/fe/test/Utils", "sap/fe/test/builder/KPIBuilder"], function(BaseAPI, Utils, KPIBuilder) {
7
+ sap.ui.define(["./BaseAPI", "sap/fe/test/Utils", "sap/fe/test/builder/KPIBuilder"], function (BaseAPI, Utils, KPIBuilder) {
7
8
  "use strict";
8
9
 
9
10
  /**
@@ -16,7 +17,7 @@ sap.ui.define(["./BaseAPI", "sap/fe/test/Utils", "sap/fe/test/builder/KPIBuilder
16
17
  * @hideconstructor
17
18
  * @public
18
19
  */
19
- var KPICardAPI = function(oKPIBuilder) {
20
+ var KPICardAPI = function (oKPIBuilder) {
20
21
  if (!Utils.isOfType(oKPIBuilder, KPIBuilder)) {
21
22
  throw new Error("oKPIBuilder parameter must be an KPIBuilder instance");
22
23
  }
@@ -1,9 +1,10 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
- sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function(KPICardAPI, Utils, FEBuilder) {
7
+ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function (KPICardAPI, Utils, FEBuilder) {
7
8
  "use strict";
8
9
 
9
10
  /**
@@ -16,7 +17,7 @@ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuild
16
17
  * @hideconstructor
17
18
  * @public
18
19
  */
19
- var KPICardActions = function(oBuilderInstance) {
20
+ var KPICardActions = function (oBuilderInstance) {
20
21
  return KPICardAPI.call(this, oBuilderInstance);
21
22
  };
22
23
  KPICardActions.prototype = Object.create(KPICardAPI.prototype);
@@ -28,15 +29,10 @@ sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuild
28
29
  *
29
30
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
30
31
  */
31
- KPICardActions.prototype.iClickHeader = function() {
32
+ KPICardActions.prototype.iClickHeader = function () {
32
33
  var oKPIBuilder = this.getBuilder();
33
34
 
34
- return this.prepareResult(
35
- oKPIBuilder
36
- .doClickKPICardHeader()
37
- .description("Clicking KPI card header")
38
- .execute()
39
- );
35
+ return this.prepareResult(oKPIBuilder.doClickKPICardHeader().description("Clicking KPI card header").execute());
40
36
  };
41
37
 
42
38
  return KPICardActions;
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(["./KPICardAPI", "sap/fe/test/Utils", "sap/fe/test/builder/FEBuilder"], function (KPICardAPI, Utils, FEBuilder) {
7
8
  "use strict";
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -47,7 +48,7 @@ sap.ui.define(
47
48
  TableAPI.prototype = Object.create(BaseAPI.prototype);
48
49
  TableAPI.prototype.constructor = TableAPI;
49
50
 
50
- TableAPI.createRowMatchers = function (vRowValues, mRowState, vAdditionalMatchers, vEmptyCells) {
51
+ TableAPI.createRowMatchers = function (vRowValues, mRowState, vAdditionalMatchers, vHiddenCells) {
51
52
  var aArguments = Utils.parseArguments([[Object, Number], Object, [Array, Function], Array], arguments),
52
53
  aRowMatchers = [];
53
54
  if (Utils.isOfType(aArguments[0], Object)) {
@@ -65,7 +66,7 @@ sap.ui.define(
65
66
  aRowMatchers.push(TableBuilder.Row.Matchers.states(aArguments[1]));
66
67
  }
67
68
  if (!Utils.isOfType(aArguments[3], [null, undefined])) {
68
- aRowMatchers.push(TableBuilder.Row.Matchers.emptyCells(aArguments[3]));
69
+ aRowMatchers.push(TableBuilder.Row.Matchers.hiddenCells(aArguments[3]));
69
70
  }
70
71
  if (!Utils.isOfType(aArguments[2], [null, undefined])) {
71
72
  aRowMatchers = aRowMatchers.concat(aArguments[2]);
@@ -1,7 +1,8 @@
1
1
  /*
2
- * ! SAP UI development toolkit for HTML5 (SAPUI5)
2
+ * !
3
+ SAP UI development toolkit for HTML5 (SAPUI5)
3
4
  (c) Copyright 2009-2021 SAP SE. All rights reserved
4
-
5
+
5
6
  */
6
7
  sap.ui.define(
7
8
  [
@@ -727,17 +728,22 @@ sap.ui.define(
727
728
  * Sorts the table entries by the specified column.
728
729
  *
729
730
  * @param {string | sap.fe.test.api.ColumnIdentifier | number} vColumnIdentifier The identifier of the column field, its label or index
730
- * @param {string} [sFieldLabel] The target field to sort by in case of a complex property
731
- * @param {boolean} bDescending
731
+ * @param {string} [sFieldLabel] The target field for sorting in case the field label differs from the column label or in case of a complex property
732
+ * @param {boolean} [bDescending] Sorting (true=descending, false=ascending (default))
733
+ * @param {boolean} [bClearFirst] Set to <code>true</code> to clear previously set sortings (default), otherwise all previously set sorting fields will be kept.
732
734
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
733
735
  * @public
734
736
  */
735
- Actions.prototype.iSortByColumn = function (vColumnIdentifier, sFieldLabel, bDescending) {
737
+ Actions.prototype.iSortByColumn = function (vColumnIdentifier, sFieldLabel, bDescending, bClearFirst) {
736
738
  var oTableBuilder = this.getBuilder(),
737
- vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier;
739
+ vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier,
740
+ bClear = bClearFirst || bClearFirst === undefined,
741
+ sFieldName = !sFieldLabel ? vColumn : sFieldLabel,
742
+ sSorting = bDescending ? SortOrder.Descending : SortOrder.Ascending;
743
+
738
744
  return this.prepareResult(
739
745
  oTableBuilder
740
- .doSortByColumn(vColumn, sFieldLabel, bDescending)
746
+ .doSortByColumn(vColumn, sFieldName, sSorting, bClear)
741
747
  .description(
742
748
  Utils.formatMessage(
743
749
  "Sorting column '{1}{2}' of table '{0}'",
@@ -754,13 +760,14 @@ sap.ui.define(
754
760
  * Groups the table entries by the specified column.
755
761
  *
756
762
  * @param {string | sap.fe.test.api.ColumnIdentifier | number} vColumnIdentifier The identifier of the column field, its label or index
757
- * @param {string} [sFieldLabel] The target field to group on in case of a complex property
763
+ * @param {string} [sFieldLabel] The target field for grouping. If undefined, parameter vColumnIdentifier is used as label to identify the toggle button.
758
764
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
759
765
  * @public
760
766
  */
761
767
  Actions.prototype.iGroupByColumn = function (vColumnIdentifier, sFieldLabel) {
762
768
  var oTableBuilder = this.getBuilder(),
763
769
  vColumn = Utils.isOfType(vColumnIdentifier, Object) ? vColumnIdentifier.name : vColumnIdentifier;
770
+
764
771
  return this.prepareResult(
765
772
  oTableBuilder
766
773
  .doGroupByColumn(vColumn, sFieldLabel)
@@ -780,7 +787,7 @@ sap.ui.define(
780
787
  * Aggregates the table entries by the specified column.
781
788
  *
782
789
  * @param {string | sap.fe.test.api.ColumnIdentifier | number} vColumnIdentifier The identifier of the column field, its label or index
783
- * @param {string} [sFieldLabel] The target field to group on in case of a complex property
790
+ * @param {string} [sFieldLabel] The target field to group on. If undefined, parameter vColumnIdentifier is used as label to identify the toggle button.
784
791
  * @returns {object} The result of the {@link sap.ui.test.Opa5#waitFor} function, to be used for chained statements
785
792
  * @public
786
793
  */