@sap-ux/ui5-test-writer 1.7.2 → 1.8.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/dist/fiori-elements-opa-writer.js +6 -17
- package/dist/types.d.ts +5 -1
- package/dist/utils/journeyRunnerUtils.js +18 -4
- package/dist/utils/listReportUtils.d.ts +13 -0
- package/dist/utils/listReportUtils.js +35 -4
- package/dist/utils/modelUtils.js +1 -1
- package/dist/utils/objectPageUtils.d.ts +20 -1
- package/dist/utils/objectPageUtils.js +31 -9
- package/dist/utils/opaJourneyTypesUtils.d.ts +4 -4
- package/dist/utils/opaJourneyTypesUtils.js +48 -10
- package/dist/utils/tableUtils.d.ts +10 -0
- package/dist/utils/tableUtils.js +43 -6
- package/package.json +4 -4
- package/templates/v4/1.148/integration/FPMJourney.js +0 -8
- package/templates/v4/1.148/integration/FPMJourney.ts +38 -0
- package/templates/v4/1.148/integration/ListReportJourney.js +2 -0
- package/templates/v4/1.148/integration/ListReportJourney.ts +2 -0
- package/templates/v4/1.148/integration/ObjectPageJourney.js +6 -2
- package/templates/v4/1.148/integration/ObjectPageJourney.ts +6 -2
- package/templates/v4/1.148/integration/pages/FPM.ts +25 -0
- package/templates/v4/1.148/integration/pages/JourneyRunner.ts +9 -1
- package/templates/v4/1.148/integration/types/OpaJourneyTypes.d.ts +27 -6
- package/templates/v4/1.84/integration/FPMJourney.js +0 -8
- package/templates/v4/1.84/integration/FPMJourney.ts +38 -0
- package/templates/v4/1.84/integration/ListReportJourney.js +2 -0
- package/templates/v4/1.84/integration/ListReportJourney.ts +2 -0
- package/templates/v4/1.84/integration/ObjectPageJourney.js +6 -2
- package/templates/v4/1.84/integration/ObjectPageJourney.ts +6 -2
- package/templates/v4/1.84/integration/pages/FPM.ts +25 -0
- package/templates/v4/1.84/integration/pages/JourneyRunner.ts +9 -1
- package/templates/v4/1.84/integration/types/OpaJourneyTypes.d.ts +27 -6
- package/templates/v4/latest/integration/FPMJourney.js +0 -8
- package/templates/v4/latest/integration/FPMJourney.ts +38 -0
- package/templates/v4/latest/integration/ListReportJourney.js +2 -0
- package/templates/v4/latest/integration/ListReportJourney.ts +2 -0
- package/templates/v4/latest/integration/ObjectPageJourney.js +6 -2
- package/templates/v4/latest/integration/ObjectPageJourney.ts +6 -2
- package/templates/v4/latest/integration/pages/FPM.ts +25 -0
- package/templates/v4/latest/integration/pages/JourneyRunner.ts +9 -1
- package/templates/v4/latest/integration/types/OpaJourneyTypes.d.ts +27 -6
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom tests: ║ *
|
|
10
|
+
* ║ - Create a new journey test file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the opaTests.qunit.js config file. ║ *
|
|
13
|
+
* ║ - Custom journey files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
import opaTest from "sap/ui/test/opaQunit";
|
|
19
|
+
import type { Given, When, Then } from "./types/OpaJourneyTypes.gen";
|
|
20
|
+
import runner from "./pages/JourneyRunner";
|
|
21
|
+
|
|
22
|
+
function journey() {
|
|
23
|
+
QUnit.module("FPM journey");
|
|
24
|
+
|
|
25
|
+
opaTest("Start application", function (Given: Given, _When: When, Then: Then) {
|
|
26
|
+
Given.iStartMyApp();
|
|
27
|
+
<%_ startPages.forEach(function(pageName) { %>
|
|
28
|
+
Then.onThe<%- pageName %>Generated.iSeeThisPage();
|
|
29
|
+
<%_ }); -%>
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
opaTest("Teardown", function (Given: Given) {
|
|
33
|
+
// Cleanup
|
|
34
|
+
Given.iTearDownMyApp();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
runner.run([journey]);
|
|
@@ -69,6 +69,8 @@ sap.ui.define([
|
|
|
69
69
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
70
70
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
71
71
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
72
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
73
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
72
74
|
// });
|
|
73
75
|
|
|
74
76
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -74,6 +74,8 @@ function journey() {
|
|
|
74
74
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
75
75
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
76
76
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
77
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
78
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
77
79
|
// });
|
|
78
80
|
|
|
79
81
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -27,11 +27,15 @@ sap.ui.define([
|
|
|
27
27
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given, When, Then) {
|
|
28
28
|
Given.iStartMyApp();
|
|
29
29
|
<% if(navigationParents.parentLRName) { -%>
|
|
30
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : ''; -%>
|
|
30
31
|
<% if (!hideFilterBar) { -%>
|
|
31
32
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
32
33
|
<% } -%>
|
|
33
|
-
|
|
34
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
34
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
35
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
36
|
+
<% } -%>
|
|
37
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
38
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
35
39
|
<% } -%>
|
|
36
40
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
37
41
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -46,11 +46,15 @@ function journey() {
|
|
|
46
46
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given: Given, When: When, Then: Then) {
|
|
47
47
|
Given.iStartMyApp();
|
|
48
48
|
<% if(navigationParents.parentLRName) { -%>
|
|
49
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : '""'; -%>
|
|
49
50
|
<% if (!hideFilterBar) { -%>
|
|
50
51
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
51
52
|
<% } -%>
|
|
52
|
-
|
|
53
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
53
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
54
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
55
|
+
<% } -%>
|
|
56
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
57
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
54
58
|
<% } -%>
|
|
55
59
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
56
60
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom pages: ║ *
|
|
10
|
+
* ║ - Create a new page file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the JourneyRunner. ║ *
|
|
13
|
+
* ║ - Custom page files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
export const actions = {};
|
|
19
|
+
|
|
20
|
+
export const assertions = {};
|
|
21
|
+
|
|
22
|
+
export default class FPM {
|
|
23
|
+
actions = actions;
|
|
24
|
+
assertions = assertions;
|
|
25
|
+
}
|
|
@@ -5,13 +5,21 @@ import ListReport from "sap/fe/test/ListReport";
|
|
|
5
5
|
<% if (pages.some((p) => p.template === 'ObjectPage')) { -%>
|
|
6
6
|
import ObjectPage from "sap/fe/test/ObjectPage";
|
|
7
7
|
<% } -%>
|
|
8
|
+
<% if (pages.some((p) => p.template === 'FPM')) { -%>
|
|
9
|
+
import TemplatePage from "sap/fe/test/TemplatePage";
|
|
10
|
+
<% } -%>
|
|
8
11
|
<%- pages.map((page) => 'import Custom' + page.targetKey + 'Generated from "./' + page.targetKey + '.gen";').join('\n') %>
|
|
9
12
|
|
|
10
13
|
const runner = new JourneyRunner({
|
|
11
14
|
launchUrl: sap.ui.require.toUrl("<%- appPath %>") + "/<%- htmlTarget %>",
|
|
12
15
|
pages: {
|
|
13
16
|
<%- pages.map((page) =>
|
|
14
|
-
|
|
17
|
+
page.template === 'FPM'
|
|
18
|
+
? ' onThe' + page.targetKey + 'Generated: new (TemplatePage as unknown as new (id: string, defs: object) => object)(\n' +
|
|
19
|
+
' "' + page.appID + '::' + page.componentID + '",\n' +
|
|
20
|
+
' Custom' + page.targetKey + 'Generated\n' +
|
|
21
|
+
' )'
|
|
22
|
+
: ' onThe' + page.targetKey + 'Generated: new ' + page.template + '(\n' +
|
|
15
23
|
' {\n' +
|
|
16
24
|
' appId: "' + page.appID + '",\n' +
|
|
17
25
|
' componentId: "' + page.componentID + '",\n' +
|
|
@@ -18,15 +18,32 @@ import type { actions as ListReportActions, assertions as ListReportAssertions }
|
|
|
18
18
|
<% if (pages.some(p => p.template === 'ObjectPage')) { -%>
|
|
19
19
|
import type { actions as ObjectPageActions, assertions as ObjectPageAssertions } from "sap/fe/test/ObjectPage";
|
|
20
20
|
<% } -%>
|
|
21
|
-
<% if (pages.some(p => p.template === 'ListReport' || p.template === 'ObjectPage')) { -%>
|
|
21
|
+
<% if (pages.some(p => p.template === 'ListReport' || p.template === 'ObjectPage' || p.template === 'FPM')) { -%>
|
|
22
22
|
import type { actions as TemplatePageActions, assertions as TemplatePageAssertions } from "sap/fe/test/TemplatePage";
|
|
23
23
|
<% } -%>
|
|
24
24
|
import type Shell from "sap/fe/test/Shell";
|
|
25
25
|
import type BaseArrangements from "sap/fe/test/BaseArrangements";
|
|
26
|
-
<% pages.filter((p) => p.template === 'ListReport' || p.template === 'ObjectPage').forEach(function(page) { -%>
|
|
26
|
+
<% pages.filter((p) => p.template === 'ListReport' || p.template === 'ObjectPage' || p.template === 'FPM').forEach(function(page) { -%>
|
|
27
27
|
import type { actions as <%- page.targetKey %>GeneratedCustomActions, assertions as <%- page.targetKey %>GeneratedCustomAssertions } from "../pages/<%- page.targetKey %>.gen";
|
|
28
28
|
<% }); -%>
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Enables OPA5 fluent `.and` chaining on page objects and their sub-objects.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* Then.onTheObjectPageGenerated.iCheckSection({ section: "A" }).and.iCheckSection({ section: "B" });
|
|
35
|
+
* When.onTheListReportGenerated.onFilterBar().iExecuteSearch().and.iClearFilterBar();
|
|
36
|
+
*/
|
|
37
|
+
type WithAnd<T> = {
|
|
38
|
+
[K in keyof T | 'and']: K extends 'and'
|
|
39
|
+
? WithAnd<T>
|
|
40
|
+
: K extends keyof T
|
|
41
|
+
? T[K] extends (...args: infer A) => infer R
|
|
42
|
+
? (...args: A) => (R extends Opa5 | object ? (keyof R extends never ? WithAnd<T> : [R] extends [Opa5] ? WithAnd<T> : WithAnd<R>) : WithAnd<T>)
|
|
43
|
+
: T[K]
|
|
44
|
+
: never;
|
|
45
|
+
};
|
|
46
|
+
|
|
30
47
|
export type Given = Opa5 & BaseArrangements & {
|
|
31
48
|
iTearDownMyApp: () => Given;
|
|
32
49
|
iStartMyApp: (sAppHash?: string, mInUrlParameters?: object) => Given;
|
|
@@ -36,9 +53,11 @@ export type Given = Opa5 & BaseArrangements & {
|
|
|
36
53
|
export type When = Opa5 & BaseArrangements & {
|
|
37
54
|
<% pages.forEach(function(page) { -%>
|
|
38
55
|
<% if (page.template === 'ListReport') { -%>
|
|
39
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ListReportActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions
|
|
56
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ListReportActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
40
57
|
<% } else if (page.template === 'ObjectPage') { -%>
|
|
41
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions
|
|
58
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ObjectPageActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
59
|
+
<% } else if (page.template === 'FPM') { -%>
|
|
60
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
42
61
|
<% } -%>
|
|
43
62
|
<% }); -%>
|
|
44
63
|
onTheShell: Shell;
|
|
@@ -47,9 +66,11 @@ export type When = Opa5 & BaseArrangements & {
|
|
|
47
66
|
export type Then = Opa5 & BaseArrangements & {
|
|
48
67
|
<% pages.forEach(function(page) { -%>
|
|
49
68
|
<% if (page.template === 'ListReport') { -%>
|
|
50
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ListReportAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions
|
|
69
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ListReportAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
51
70
|
<% } else if (page.template === 'ObjectPage') { -%>
|
|
52
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions
|
|
71
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ObjectPageAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
72
|
+
<% } else if (page.template === 'FPM') { -%>
|
|
73
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
53
74
|
<% } -%>
|
|
54
75
|
<% }); -%>
|
|
55
76
|
onTheShell: Shell;
|
|
@@ -28,14 +28,6 @@ sap.ui.define([
|
|
|
28
28
|
Given.iStartMyApp();
|
|
29
29
|
<%_ startPages.forEach(function(pageName) { %>
|
|
30
30
|
Then.onThe<%- pageName %>Generated.iSeeThisPage();
|
|
31
|
-
<%_ if (filterBarItems && filterBarItems.length > 0) { -%>
|
|
32
|
-
<%_ filterBarItems.forEach(function(item) { _%>
|
|
33
|
-
Then.onThe<%- pageName%>Generated.onFilterBar().iCheckFilterField({ property: "<%- item %>" });
|
|
34
|
-
<%_ }); -%>
|
|
35
|
-
<%_ } -%>
|
|
36
|
-
<%_ if (tableColumns && Object.keys(tableColumns).length > 0) { _%>
|
|
37
|
-
Then.onThe<%- pageName %>Generated.onTable().iCheckColumns(undefined, <%- JSON.stringify(tableColumns) %>);
|
|
38
|
-
<%_ } %>
|
|
39
31
|
<%_ }); -%>
|
|
40
32
|
});
|
|
41
33
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom tests: ║ *
|
|
10
|
+
* ║ - Create a new journey test file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the opaTests.qunit.js config file. ║ *
|
|
13
|
+
* ║ - Custom journey files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
import opaTest from "sap/ui/test/opaQunit";
|
|
19
|
+
import type { Given, When, Then } from "./types/OpaJourneyTypes.gen";
|
|
20
|
+
import runner from "./pages/JourneyRunner";
|
|
21
|
+
|
|
22
|
+
function journey() {
|
|
23
|
+
QUnit.module("FPM journey");
|
|
24
|
+
|
|
25
|
+
opaTest("Start application", function (Given: Given, _When: When, Then: Then) {
|
|
26
|
+
Given.iStartMyApp();
|
|
27
|
+
<%_ startPages.forEach(function(pageName) { %>
|
|
28
|
+
Then.onThe<%- pageName %>Generated.iSeeThisPage();
|
|
29
|
+
<%_ }); -%>
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
opaTest("Teardown", function (Given: Given) {
|
|
33
|
+
// Cleanup
|
|
34
|
+
Given.iTearDownMyApp();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
runner.run([journey]);
|
|
@@ -69,6 +69,8 @@ sap.ui.define([
|
|
|
69
69
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
70
70
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
71
71
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
72
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
73
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
72
74
|
// });
|
|
73
75
|
|
|
74
76
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -74,6 +74,8 @@ function journey() {
|
|
|
74
74
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
75
75
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
76
76
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
77
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
78
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
77
79
|
// });
|
|
78
80
|
|
|
79
81
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -27,11 +27,15 @@ sap.ui.define([
|
|
|
27
27
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given, When, Then) {
|
|
28
28
|
Given.iStartMyApp();
|
|
29
29
|
<% if(navigationParents.parentLRName) { -%>
|
|
30
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : ''; -%>
|
|
30
31
|
<% if (!hideFilterBar) { -%>
|
|
31
32
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
32
33
|
<% } -%>
|
|
33
|
-
|
|
34
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
34
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
35
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
36
|
+
<% } -%>
|
|
37
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
38
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
35
39
|
<% } -%>
|
|
36
40
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
37
41
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -46,11 +46,15 @@ function journey() {
|
|
|
46
46
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given: Given, When: When, Then: Then) {
|
|
47
47
|
Given.iStartMyApp();
|
|
48
48
|
<% if(navigationParents.parentLRName) { -%>
|
|
49
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : '""'; -%>
|
|
49
50
|
<% if (!hideFilterBar) { -%>
|
|
50
51
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
51
52
|
<% } -%>
|
|
52
|
-
|
|
53
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
53
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
54
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
55
|
+
<% } -%>
|
|
56
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
57
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
54
58
|
<% } -%>
|
|
55
59
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
56
60
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom pages: ║ *
|
|
10
|
+
* ║ - Create a new page file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the JourneyRunner. ║ *
|
|
13
|
+
* ║ - Custom page files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
export const actions = {};
|
|
19
|
+
|
|
20
|
+
export const assertions = {};
|
|
21
|
+
|
|
22
|
+
export default class FPM {
|
|
23
|
+
actions = actions;
|
|
24
|
+
assertions = assertions;
|
|
25
|
+
}
|
|
@@ -5,13 +5,21 @@ import ListReport from "sap/fe/test/ListReport";
|
|
|
5
5
|
<% if (pages.some((p) => p.template === 'ObjectPage')) { -%>
|
|
6
6
|
import ObjectPage from "sap/fe/test/ObjectPage";
|
|
7
7
|
<% } -%>
|
|
8
|
+
<% if (pages.some((p) => p.template === 'FPM')) { -%>
|
|
9
|
+
import TemplatePage from "sap/fe/test/TemplatePage";
|
|
10
|
+
<% } -%>
|
|
8
11
|
<%- pages.map((page) => 'import Custom' + page.targetKey + 'Generated from "./' + page.targetKey + '.gen";').join('\n') %>
|
|
9
12
|
|
|
10
13
|
const runner = new JourneyRunner({
|
|
11
14
|
launchUrl: sap.ui.require.toUrl("<%- appPath %>") + "/<%- htmlTarget %>",
|
|
12
15
|
pages: {
|
|
13
16
|
<%- pages.map((page) =>
|
|
14
|
-
|
|
17
|
+
page.template === 'FPM'
|
|
18
|
+
? ' onThe' + page.targetKey + 'Generated: new (TemplatePage as unknown as new (id: string, defs: object) => object)(\n' +
|
|
19
|
+
' "' + page.appID + '::' + page.componentID + '",\n' +
|
|
20
|
+
' Custom' + page.targetKey + 'Generated\n' +
|
|
21
|
+
' )'
|
|
22
|
+
: ' onThe' + page.targetKey + 'Generated: new ' + page.template + '(\n' +
|
|
15
23
|
' {\n' +
|
|
16
24
|
' appId: "' + page.appID + '",\n' +
|
|
17
25
|
' componentId: "' + page.componentID + '",\n' +
|
|
@@ -18,15 +18,32 @@ import type { actions as ListReportActions, assertions as ListReportAssertions }
|
|
|
18
18
|
<% if (pages.some(p => p.template === 'ObjectPage')) { -%>
|
|
19
19
|
import type { actions as ObjectPageActions, assertions as ObjectPageAssertions } from "sap/fe/test/ObjectPage";
|
|
20
20
|
<% } -%>
|
|
21
|
-
<% if (pages.some(p => p.template === 'ListReport' || p.template === 'ObjectPage')) { -%>
|
|
21
|
+
<% if (pages.some(p => p.template === 'ListReport' || p.template === 'ObjectPage' || p.template === 'FPM')) { -%>
|
|
22
22
|
import type { actions as TemplatePageActions, assertions as TemplatePageAssertions } from "sap/fe/test/TemplatePage";
|
|
23
23
|
<% } -%>
|
|
24
24
|
import type Shell from "sap/fe/test/Shell";
|
|
25
25
|
import type BaseArrangements from "sap/fe/test/BaseArrangements";
|
|
26
|
-
<% pages.filter((p) => p.template === 'ListReport' || p.template === 'ObjectPage').forEach(function(page) { -%>
|
|
26
|
+
<% pages.filter((p) => p.template === 'ListReport' || p.template === 'ObjectPage' || p.template === 'FPM').forEach(function(page) { -%>
|
|
27
27
|
import type { actions as <%- page.targetKey %>GeneratedCustomActions, assertions as <%- page.targetKey %>GeneratedCustomAssertions } from "../pages/<%- page.targetKey %>.gen";
|
|
28
28
|
<% }); -%>
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Enables OPA5 fluent `.and` chaining on page objects and their sub-objects.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* Then.onTheObjectPageGenerated.iCheckSection({ section: "A" }).and.iCheckSection({ section: "B" });
|
|
35
|
+
* When.onTheListReportGenerated.onFilterBar().iExecuteSearch().and.iClearFilterBar();
|
|
36
|
+
*/
|
|
37
|
+
type WithAnd<T> = {
|
|
38
|
+
[K in keyof T | 'and']: K extends 'and'
|
|
39
|
+
? WithAnd<T>
|
|
40
|
+
: K extends keyof T
|
|
41
|
+
? T[K] extends (...args: infer A) => infer R
|
|
42
|
+
? (...args: A) => (R extends Opa5 | object ? (keyof R extends never ? WithAnd<T> : [R] extends [Opa5] ? WithAnd<T> : WithAnd<R>) : WithAnd<T>)
|
|
43
|
+
: T[K]
|
|
44
|
+
: never;
|
|
45
|
+
};
|
|
46
|
+
|
|
30
47
|
export type Given = Opa5 & BaseArrangements & {
|
|
31
48
|
iTearDownMyApp: () => Given;
|
|
32
49
|
iStartMyApp: (sAppHash?: string, mInUrlParameters?: object) => Given;
|
|
@@ -36,9 +53,11 @@ export type Given = Opa5 & BaseArrangements & {
|
|
|
36
53
|
export type When = Opa5 & BaseArrangements & {
|
|
37
54
|
<% pages.forEach(function(page) { -%>
|
|
38
55
|
<% if (page.template === 'ListReport') { -%>
|
|
39
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ListReportActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions
|
|
56
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ListReportActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
40
57
|
<% } else if (page.template === 'ObjectPage') { -%>
|
|
41
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions
|
|
58
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ObjectPageActions & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
59
|
+
<% } else if (page.template === 'FPM') { -%>
|
|
60
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & TemplatePageActions & typeof <%- page.targetKey %>GeneratedCustomActions>;
|
|
42
61
|
<% } -%>
|
|
43
62
|
<% }); -%>
|
|
44
63
|
onTheShell: Shell;
|
|
@@ -47,9 +66,11 @@ export type When = Opa5 & BaseArrangements & {
|
|
|
47
66
|
export type Then = Opa5 & BaseArrangements & {
|
|
48
67
|
<% pages.forEach(function(page) { -%>
|
|
49
68
|
<% if (page.template === 'ListReport') { -%>
|
|
50
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ListReportAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions
|
|
69
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ListReportAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
51
70
|
<% } else if (page.template === 'ObjectPage') { -%>
|
|
52
|
-
onThe<%- page.targetKey %>Generated: Opa5 & ObjectPageAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions
|
|
71
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & ObjectPageAssertions & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
72
|
+
<% } else if (page.template === 'FPM') { -%>
|
|
73
|
+
onThe<%- page.targetKey %>Generated: WithAnd<Opa5 & TemplatePageAssertions & typeof <%- page.targetKey %>GeneratedCustomAssertions>;
|
|
53
74
|
<% } -%>
|
|
54
75
|
<% }); -%>
|
|
55
76
|
onTheShell: Shell;
|
|
@@ -28,14 +28,6 @@ sap.ui.define([
|
|
|
28
28
|
Given.iStartMyApp();
|
|
29
29
|
<%_ startPages.forEach(function(pageName) { %>
|
|
30
30
|
Then.onThe<%- pageName %>Generated.iSeeThisPage();
|
|
31
|
-
<%_ if (filterBarItems && filterBarItems.length > 0) { -%>
|
|
32
|
-
<%_ filterBarItems.forEach(function(item) { _%>
|
|
33
|
-
Then.onThe<%- pageName%>Generated.onFilterBar().iCheckFilterField({ property: "<%- item %>" });
|
|
34
|
-
<%_ }); -%>
|
|
35
|
-
<%_ } -%>
|
|
36
|
-
<%_ if (tableColumns && Object.keys(tableColumns).length > 0) { _%>
|
|
37
|
-
Then.onThe<%- pageName %>Generated.onTable().iCheckColumns(undefined, <%- JSON.stringify(tableColumns) %>);
|
|
38
|
-
<%_ } %>
|
|
39
31
|
<%_ }); -%>
|
|
40
32
|
});
|
|
41
33
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom tests: ║ *
|
|
10
|
+
* ║ - Create a new journey test file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the opaTests.qunit.js config file. ║ *
|
|
13
|
+
* ║ - Custom journey files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
import opaTest from "sap/ui/test/opaQunit";
|
|
19
|
+
import type { Given, When, Then } from "./types/OpaJourneyTypes.gen";
|
|
20
|
+
import runner from "./pages/JourneyRunner";
|
|
21
|
+
|
|
22
|
+
function journey() {
|
|
23
|
+
QUnit.module("FPM journey");
|
|
24
|
+
|
|
25
|
+
opaTest("Start application", function (Given: Given, _When: When, Then: Then) {
|
|
26
|
+
Given.iStartMyApp();
|
|
27
|
+
<%_ startPages.forEach(function(pageName) { %>
|
|
28
|
+
Then.onThe<%- pageName %>Generated.iSeeThisPage();
|
|
29
|
+
<%_ }); -%>
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
opaTest("Teardown", function (Given: Given) {
|
|
33
|
+
// Cleanup
|
|
34
|
+
Given.iTearDownMyApp();
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
runner.run([journey]);
|
|
@@ -69,6 +69,8 @@ sap.ui.define([
|
|
|
69
69
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
70
70
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
71
71
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
72
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
73
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
72
74
|
// });
|
|
73
75
|
|
|
74
76
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -74,6 +74,8 @@ function journey() {
|
|
|
74
74
|
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField("Search Term");
|
|
75
75
|
// When.onThe<%- startLR%>Generated.onFilterBar().iExecuteSearch();
|
|
76
76
|
// Then.onThe<%- startLR%>Generated.onTable(defaultTableId).iCheckRows();
|
|
77
|
+
// When.onThe<%- startLR%>Generated.onFilterBar().iChangeSearchField(undefined);
|
|
78
|
+
// Then.onThe<%- startLR%>Generated.onFilterBar().iCheckSearchField(undefined);
|
|
77
79
|
// });
|
|
78
80
|
|
|
79
81
|
<%_ if ((toolBarActions && toolBarActions.length > 0 ) || (tableColumns && Object.keys(tableColumns).length > 0)) { -%>
|
|
@@ -27,11 +27,15 @@ sap.ui.define([
|
|
|
27
27
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given, When, Then) {
|
|
28
28
|
Given.iStartMyApp();
|
|
29
29
|
<% if(navigationParents.parentLRName) { -%>
|
|
30
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : ''; -%>
|
|
30
31
|
<% if (!hideFilterBar) { -%>
|
|
31
32
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
32
33
|
<% } -%>
|
|
33
|
-
|
|
34
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
34
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
35
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
36
|
+
<% } -%>
|
|
37
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
38
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
35
39
|
<% } -%>
|
|
36
40
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
37
41
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -49,11 +49,15 @@ function journey() {
|
|
|
49
49
|
opaTest("Navigate to <%- name%>ObjectPage", function (Given: Given, When: When, Then: Then) {
|
|
50
50
|
Given.iStartMyApp();
|
|
51
51
|
<% if(navigationParents.parentLRName) { -%>
|
|
52
|
+
<% const parentTableId = navigationParents.parentLRViewKey ? '"' + navigationParents.parentLRViewKey + '"' : '""'; -%>
|
|
52
53
|
<% if (!hideFilterBar) { -%>
|
|
53
54
|
When.onThe<%- navigationParents.parentLRName%>Generated.onFilterBar().iExecuteSearch();
|
|
54
55
|
<% } -%>
|
|
55
|
-
|
|
56
|
-
When.onThe<%- navigationParents.parentLRName%>Generated.
|
|
56
|
+
<% if (navigationParents.parentLRViewKey && !navigationParents.parentLRViewIsDefault) { -%>
|
|
57
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.iGoToView({ key: "<%- navigationParents.parentLRViewKey %>" });
|
|
58
|
+
<% } -%>
|
|
59
|
+
Then.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iCheckRows();
|
|
60
|
+
When.onThe<%- navigationParents.parentLRName%>Generated.onTable(<%- parentTableId %>).iPressRow(0);
|
|
57
61
|
<% } -%>
|
|
58
62
|
<% navigationParents.parentOPs.forEach(function(parent) { %>
|
|
59
63
|
Then.onThe<%- parent.name %>Generated.iSeeThisPage();
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* ╔═══════════════════════════════════════════════════════════════════════╗ *
|
|
3
|
+
* ║ ║ *
|
|
4
|
+
* ║ WARNING: AUTO-GENERATED FILE ║ *
|
|
5
|
+
* ║ ║ *
|
|
6
|
+
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
|
|
7
|
+
* ║ overwritten when you run the OPA test generator again. ║ *
|
|
8
|
+
* ║ ║ *
|
|
9
|
+
* ║ To add your own custom pages: ║ *
|
|
10
|
+
* ║ - Create a new page file in this directory. ║ *
|
|
11
|
+
* ║ - Follow the same pattern as this file. ║ *
|
|
12
|
+
* ║ - Add the new file to the JourneyRunner. ║ *
|
|
13
|
+
* ║ - Custom page files are not overwritten. ║ *
|
|
14
|
+
* ║ ║ *
|
|
15
|
+
* ╚═══════════════════════════════════════════════════════════════════════╝ *
|
|
16
|
+
******************************************************************************/
|
|
17
|
+
|
|
18
|
+
export const actions = {};
|
|
19
|
+
|
|
20
|
+
export const assertions = {};
|
|
21
|
+
|
|
22
|
+
export default class FPM {
|
|
23
|
+
actions = actions;
|
|
24
|
+
assertions = assertions;
|
|
25
|
+
}
|
|
@@ -5,13 +5,21 @@ import ListReport from "sap/fe/test/ListReport";
|
|
|
5
5
|
<% if (pages.some((p) => p.template === 'ObjectPage')) { -%>
|
|
6
6
|
import ObjectPage from "sap/fe/test/ObjectPage";
|
|
7
7
|
<% } -%>
|
|
8
|
+
<% if (pages.some((p) => p.template === 'FPM')) { -%>
|
|
9
|
+
import TemplatePage from "sap/fe/test/TemplatePage";
|
|
10
|
+
<% } -%>
|
|
8
11
|
<%- pages.map((page) => 'import Custom' + page.targetKey + 'Generated from "./' + page.targetKey + '.gen";').join('\n') %>
|
|
9
12
|
|
|
10
13
|
const runner = new JourneyRunner({
|
|
11
14
|
launchUrl: sap.ui.require.toUrl("<%- appPath %>") + "/<%- htmlTarget %>",
|
|
12
15
|
pages: {
|
|
13
16
|
<%- pages.map((page) =>
|
|
14
|
-
|
|
17
|
+
page.template === 'FPM'
|
|
18
|
+
? ' onThe' + page.targetKey + 'Generated: new (TemplatePage as unknown as new (id: string, defs: object) => object)(\n' +
|
|
19
|
+
' "' + page.appID + '::' + page.componentID + '",\n' +
|
|
20
|
+
' Custom' + page.targetKey + 'Generated\n' +
|
|
21
|
+
' )'
|
|
22
|
+
: ' onThe' + page.targetKey + 'Generated: new ' + page.template + '(\n' +
|
|
15
23
|
' {\n' +
|
|
16
24
|
' appId: "' + page.appID + '",\n' +
|
|
17
25
|
' componentId: "' + page.componentID + '",\n' +
|