make protractor tests work

This commit is contained in:
Andrew
2015-03-30 08:52:49 -06:00
parent bedbe8b489
commit df9ef592f5
13 changed files with 101 additions and 124 deletions

View File

@@ -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 %>

View File

@@ -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>

View File

@@ -1,2 +0,0 @@
//TODO find a better override than window
window.IONIC_PLATFORM = '<%= platform %>';