Skip to content

Commit

Permalink
fix appveyor failure
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Feb 9, 2017
1 parent 84fca65 commit 6120c0f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/e2e/tests/test/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import {
ng,
exec,
npm,
execAndWaitForOutputToMatch,
killAllProcesses
} from '../../utils/process';
import { updateJsonFile } from '../../utils/project';
import { expectToFail } from '../../utils/utils';
import { moveFile, copyFile } from '../../utils/fs';


export default function () {
// Should fail without updated webdriver
return exec('./node_modules/.bin/webdriver-manager', 'clean')
return updateJsonFile('package.json', packageJson => {
// Add to npm scripts to make running the binary compatible with Windows
const scripts = packageJson['scripts'];
scripts['wd:clean'] = 'webdriver-manager clean';
})
.then(() => npm('run', 'wd:clean'))
.then(() => expectToFail(() => ng('e2e', '--no-webdriver-update', '--no-serve')))
// Should fail without serving
.then(() => expectToFail(() => ng('e2e', '--no-serve')))
Expand Down

0 comments on commit 6120c0f

Please sign in to comment.