@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
42 lines (39 loc) • 2.42 kB
JavaScript
/******************************************************************************
* ╔═══════════════════════════════════════════════════════════════════════╗ *
* ║ ║ *
* ║ WARNING: AUTO-GENERATED FILE ║ *
* ║ ║ *
* ║ This file is automatically generated by SAP Fiori tools and is ║ *
* ║ overwritten when you run the OPA test generator again. ║ *
* ║ ║ *
* ║ To add your own custom pages: ║ *
* ║ - Create a new page file in this directory. ║ *
* ║ - Follow the same pattern as this file. ║ *
* ║ - Add the new file to the JourneyRunner. ║ *
* ║ - Custom page files are not overwritten. ║ *
* ║ ║ *
* ╚═══════════════════════════════════════════════════════════════════════╝ *
******************************************************************************/
sap.ui.define(['sap/fe/test/ObjectPage', 'sap/ui/test/actions/Press'], function(ObjectPage, Press) {
'use strict';
var CustomPageDefinitions = {
actions: {
iPressSectionIconTabFilterButton: function (section) {
return this.waitFor({
id: new RegExp(`.*--fe::FacetSection::${section}-anchor$`),
actions: new Press()
});
}
},
assertions: {}
};
return new ObjectPage(
{
appId: '<%- appID %>',
componentId: '<%- componentID %>',<% if (locals.contextPath) { %>
contextPath: '<%- contextPath %>'<% } else if (locals.entitySet) { %>
entitySet: '<%- entitySet %>'<% } %>
},
CustomPageDefinitions
);
});