@sap-ux/ui5-test-writer 1.7.1 → 1.7.2
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.
|
@@ -95,10 +95,9 @@ export declare function getListReportPage(applicationModel: ApplicationModel): P
|
|
|
95
95
|
* Retrieves all FPM Custom Page definitions from the given application model.
|
|
96
96
|
*
|
|
97
97
|
* @param applicationModel - The application model containing page definitions.
|
|
98
|
-
* @param log - optional logger instance
|
|
99
98
|
* @returns An array of FPM Custom Page definitions.
|
|
100
99
|
*/
|
|
101
|
-
export declare function getFPMPage(applicationModel: ApplicationModel
|
|
100
|
+
export declare function getFPMPage(applicationModel: ApplicationModel): PageWithModelV4 | null;
|
|
102
101
|
/**
|
|
103
102
|
* Gets FPM features from the page model using ux-specification.
|
|
104
103
|
*
|
package/dist/utils/modelUtils.js
CHANGED
|
@@ -42,7 +42,7 @@ export async function getAppFeatures(basePath, fs, log, metadata, manifest) {
|
|
|
42
42
|
}
|
|
43
43
|
listReportPage = appModel?.applicationModel ? getListReportPage(appModel.applicationModel) : listReportPage;
|
|
44
44
|
objectPages = appModel?.applicationModel ? getObjectPages(appModel.applicationModel) : objectPages;
|
|
45
|
-
fpmPage = appModel?.applicationModel ? getFPMPage(appModel.applicationModel
|
|
45
|
+
fpmPage = appModel?.applicationModel ? getFPMPage(appModel.applicationModel) : fpmPage;
|
|
46
46
|
}
|
|
47
47
|
catch (error) {
|
|
48
48
|
log?.warn('Error analyzing project model using specification. No dynamic tests will be generated. Error: ' +
|
|
@@ -59,9 +59,7 @@ export async function getAppFeatures(basePath, fs, log, metadata, manifest) {
|
|
|
59
59
|
featureData.listReport = getListReportFeatures(listReportPage, log, projectMetadata, manifest);
|
|
60
60
|
}
|
|
61
61
|
if (objectPages) {
|
|
62
|
-
log?.warn('Extracting Object Page features from application model');
|
|
63
62
|
featureData.objectPages = await getObjectPageFeatures(objectPages, listReportPage?.name, log, projectMetadata, manifest);
|
|
64
|
-
log?.warn('objectPages features extracted: ' + JSON.stringify(featureData.objectPages));
|
|
65
63
|
}
|
|
66
64
|
if (fpmPage) {
|
|
67
65
|
featureData.fpm = getFPMFeatures(fpmPage, log);
|
|
@@ -113,13 +111,11 @@ export function getListReportPage(applicationModel) {
|
|
|
113
111
|
* Retrieves all FPM Custom Page definitions from the given application model.
|
|
114
112
|
*
|
|
115
113
|
* @param applicationModel - The application model containing page definitions.
|
|
116
|
-
* @param log - optional logger instance
|
|
117
114
|
* @returns An array of FPM Custom Page definitions.
|
|
118
115
|
*/
|
|
119
|
-
export function getFPMPage(applicationModel
|
|
116
|
+
export function getFPMPage(applicationModel) {
|
|
120
117
|
for (const pageKey in applicationModel.pages) {
|
|
121
118
|
const page = applicationModel.pages[pageKey];
|
|
122
|
-
log?.warn('pageType:' + page.pageType);
|
|
123
119
|
if (page.pageType === PageTypeV4.FPMCustomPage) {
|
|
124
120
|
page.name = pageKey; // store page key as name for later identification
|
|
125
121
|
return page;
|