Skip to content

Commit 3e54496

Browse files
matz3flovogt
authored andcommitted
Demo: iframe coverage with karma-ui5
1 parent 19b95d2 commit 3e54496

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

karma-ci.conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ module.exports = function(config) {
3636
singleRun: true
3737

3838
});
39+
require("karma-ui5/helper").configureIframeCoverage(config);
3940
};

webapp/test/integration/arrangements/Startup.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,8 @@ sap.ui.define([
55

66
return Opa5.extend("sap.ui.demo.todo.test.integration.arrangements.Startup", {
77

8-
iStartMyApp() {
9-
this.iStartMyUIComponent({
10-
componentConfig: {
11-
name: "sap.ui.demo.todo",
12-
async: true,
13-
manifest: true
14-
}
15-
});
8+
iStartMyApp: function () {
9+
this.iStartMyAppInAFrame(sap.ui.require.toUrl("sap/ui/demo/todo/index") + ".html");
1610
}
1711

1812
});

0 commit comments

Comments
 (0)