@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
24 lines (22 loc) • 852 B
JavaScript
sap.ui.require(
[
'sap/fe/test/JourneyRunner',
'<%- appPath %>/test/integration/<%- opaJourneyFileName %>',
<%- pages.map((page) => {return "\t\t'" + page.appPath + '/test/integration/pages/' + page.targetKey + "'";}).join(',\n')%>
],
function(JourneyRunner, opaJourney, <%- pages.map(function(page) {return page.targetKey;}).join(', ')%>) {
'use strict';
var JourneyRunner = new JourneyRunner({
// start <%- htmlTarget %> in web folder
launchUrl: sap.ui.require.toUrl('<%- appPath %>') + '/<%- htmlTarget %>'
});
JourneyRunner.run(
{
pages: {
<%- pages.map((page) => {return '\t\t\t\t\tonThe' + page.targetKey + ': ' + page.targetKey}).join(',\n')%>
}
},
opaJourney.run
);
}
);