mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
make protractor tests work
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
describe('<%= relativePath %>', function() {
|
||||
describe('<%= relativePath %>: <%= platform %>', function() {
|
||||
|
||||
it('should init', function() {
|
||||
browser.get('http://localhost:<%= buildConfig.protractorPort %>/<%= relativePath %>');
|
||||
browser.get('http://localhost:<%= buildConfig.protractorPort %>/e2e/<%= relativePath %>?ionic-platform=<%= platform %>');
|
||||
});
|
||||
|
||||
<%= contents %>
|
||||
|
||||
@@ -18,14 +18,9 @@
|
||||
'rx/dist/rx.all': 'rx.all',
|
||||
}
|
||||
})
|
||||
System.import('app/main');
|
||||
</script>
|
||||
<script src="platform.js"></script>
|
||||
</head>
|
||||
<body ion-app>
|
||||
</body>
|
||||
<script>
|
||||
System.import('app/main');
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
//TODO find a better override than window
|
||||
window.IONIC_PLATFORM = '<%= platform %>';
|
||||
Reference in New Issue
Block a user