diff --git a/.testing/upgrade_chrome_version.sh b/.testing/upgrade_chrome_version.sh new file mode 100755 index 00000000..4086c51b --- /dev/null +++ b/.testing/upgrade_chrome_version.sh @@ -0,0 +1,6 @@ +# Update Chrome version +# Taken from: https://discuss.circleci.com/t/circle-fails-to-run-e2e-tests-using-grunt-protractor/2068/3 +wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - +sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' +sudo apt-get update +sudo apt-get install google-chrome-stable \ No newline at end of file diff --git a/circle.yml b/circle.yml index f1713061..21f43782 100644 --- a/circle.yml +++ b/circle.yml @@ -13,6 +13,7 @@ dependencies: - "/home/ubuntu/nvm/versions/node/v5.2.0/bin" - "/home/ubuntu/nvm/versions/node/v5.2.0/lib/node_modules" override: + - ./.testing/upgrade_chrome_version.sh - ./.testing/cache_meteor.sh - ./.testing/cache_npm_dependencies.sh - ./.testing/cache_build_and_dependencies.sh @@ -24,4 +25,6 @@ test: pre: - mkdir -p $CIRCLE_TEST_REPORTS/cucumber override: - - ./tests/acceptance_run \ No newline at end of file + - meteor npm test + - meteor npm run test-app + - ./tests/acceptance_run diff --git a/imports/api/generate-data.app-tests.js b/imports/api/generate-data.app-tests.js index 8bdd8ed8..712dd9b7 100644 --- a/imports/api/generate-data.app-tests.js +++ b/imports/api/generate-data.app-tests.js @@ -23,6 +23,8 @@ Meteor.methods({ // create 3 private lists _.times(3, () => createList(Random.id())); + + console.log('created fixtures'); }, }); diff --git a/tests/lists.js b/tests/lists.js index 91a54eb7..6236ff6c 100644 --- a/tests/lists.js +++ b/tests/lists.js @@ -13,7 +13,7 @@ describe('list ui', () => { browser.url('http://localhost:3100'); }); - it('can create a list @watch', () => { + it('can create a list', () => { const initialCount = countLists(); browser.click('.js-new-list');