This commit is contained in:
Tim Lancina
2015-07-20 14:25:14 -05:00
parent 7ed53a4e7f
commit f796deb581
4 changed files with 99 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
describe('<%= relativePath %>: <%= platform %>', function() {
it('should init', function() {
browser.get('http://localhost:<%= buildConfig.protractorPort %>/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>');
browser.get('http://localhost:<%= buildConfig.protractorPort %>/dist/e2e/<%= relativePath %>/index.html?ionicplatform=<%= platform %>');
});
<%= contents %>

View File

@@ -15,7 +15,7 @@ module.exports = function(gulp, argv, buildConfig) {
var snapshotValues = _.merge(snapshotConfig.platformDefauls, argv);
gulp.task('protractor-server', function() {
var app = connect().use(serveStatic(projectRoot + '/' + buildConfig.dist)); // serve everything that is static
var app = connect().use(serveStatic(projectRoot)); // serve everything that is static
protractorHttpServer = http.createServer(app).listen(buildConfig.protractorPort);
console.log('Serving `dist` on http://localhost:' + buildConfig.protractorPort);
});