@sap-ux/ui5-test-writer 0.7.100 → 0.7.102
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui5-test-writer",
|
|
3
3
|
"description": "SAP UI5 tests writer",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.102",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@sap/ux-specification": "1.144.0",
|
|
28
28
|
"@sap-ux/edmx-parser": "0.10.0",
|
|
29
29
|
"@sap-ux/annotation-converter": "0.10.21",
|
|
30
|
-
"@sap-ux/
|
|
31
|
-
"@sap-ux/
|
|
32
|
-
"@sap-ux/
|
|
30
|
+
"@sap-ux/project-access": "1.35.20",
|
|
31
|
+
"@sap-ux/ui5-application-writer": "1.8.5",
|
|
32
|
+
"@sap-ux/logger": "0.8.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/ejs": "3.1.5",
|
|
@@ -62,13 +62,15 @@ sap.ui.define([
|
|
|
62
62
|
|
|
63
63
|
<% if (bodySections?.length > 0) { -%>
|
|
64
64
|
opaTest("Check body sections of the Object Page", function (Given, When, Then) {
|
|
65
|
+
<% if (bodySections?.length > 1) { -%>
|
|
65
66
|
Then.onThe<%- name%>.iCheckNumberOfSections(<%- bodySections.length %>);
|
|
67
|
+
<% } -%>
|
|
66
68
|
<% bodySections.forEach(function(section) { -%>
|
|
67
|
-
When.onThe<%- name%>.
|
|
69
|
+
When.onThe<%- name%>.iPressSectionIconTabFilterButton("<%- section.id %>");
|
|
68
70
|
Then.onThe<%- name%>.iCheckSection({ section: "<%- section.id %>" });
|
|
69
71
|
<% if (section?.subSections?.length > 0) { -%>
|
|
70
72
|
<% section.subSections.forEach(function(subSection) { -%>
|
|
71
|
-
When.onThe<%- name%>.iGoToSection({ section: "<%- section.id %>", subSection: "<%- subSection.id %>" });
|
|
73
|
+
//When.onThe<%- name%>.iGoToSection({ section: "<%- section.id %>", subSection: "<%- subSection.id %>" });
|
|
72
74
|
Then.onThe<%- name%>.iCheckSubSection({ section: "<%- subSection.id %>" });
|
|
73
75
|
<% }) -%>
|
|
74
76
|
<% } -%>
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
sap.ui.define(['sap/fe/test/ObjectPage'], function(ObjectPage) {
|
|
1
|
+
sap.ui.define(['sap/fe/test/ObjectPage', 'sap/ui/test/actions/Press'], function(ObjectPage, Press) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var CustomPageDefinitions = {
|
|
5
|
-
actions: {
|
|
5
|
+
actions: {
|
|
6
|
+
iPressSectionIconTabFilterButton: function (section) {
|
|
7
|
+
return this.waitFor({
|
|
8
|
+
id: new RegExp(`.*--fe::FacetSection::${section}-anchor$`),
|
|
9
|
+
actions: new Press()
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
},
|
|
6
13
|
assertions: {}
|
|
7
14
|
};
|
|
8
15
|
|