test(e2e): Use current directory so e2e test won't complain about directory not exists (#2693)

* Use current directory so e2e test wont complain about directory not exists

* change .gitignore

* Only take screenshot when run on travis

* remove log
This commit is contained in:
tinayuangao
2017-01-20 09:39:36 -08:00
committed by mmalerba
parent e9ec8ab91c
commit aab6aee569
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -4,6 +4,7 @@
/dist
/tmp
/deploy
/screenshots
# dependencies
/node_modules
+4 -2
View File
@@ -3,7 +3,7 @@ import * as gulp from 'gulp';
import * as path from 'path';
import {browser} from 'protractor';
const OUTPUT_DIR = '/tmp/angular-material2-build/screenshots/';
const OUTPUT_DIR = './screenshots/';
let currentJasmineSpecName = '';
@@ -53,5 +53,7 @@ export class Screenshot {
}
export function screenshot(id: string) {
return new Screenshot(id);
if (process.env['TRAVIS']) {
return new Screenshot(id);
}
}