Hi there,
When I run the e2e tests on local they take ~3min. to run. When they run on CircleCI 2.0 they typically take anywhere from 10-15 min. and I am unable to determine why that could be the case.
Here’s the job in the CircleCI config:
smoke_and_sanity:
docker:
- image: circleci/node:8-browsers
working_directory: ~/consumer-website
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-npm-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v2-npm-dependencies-
- run:
name: Install consumer-website dependencies
command: yarn
- save_cache:
paths:
- node_modules
key: v2-npm-dependencies-{{ checksum "package.json" }}
- run:
name: Run dummy content creation script
command: yarn create-dummy-blog-posts
# run bundlesize limit!
- run:
name: Bundlesize
command: |
yarn run build
yarn run bundle
- run:
name: Run end-to-end tests
command: yarn testcafe:e2e
- run:
name: Run dummy content creation clean up
when: always
command: yarn remove-dummy-blog-posts