Javascript build timeout

I have 3 pipelines. The first 2 run Ruby tests (controllers, models, etc). The 3rd pipeline is used to run JS tests. I use the selenium web driver and Capybara.

For some reason these specs never get ran and instead it times out after around 14 minutes of build time. The other 2 pipelines work fine and complete within 5 minutes each.

I have just started using CircleCI after migrating from Codeship and never faced these issues before.

The following is the custom command I am using to run each test suite in a different pipeline:

case $CIRCLE_NODE_INDEX in 0) rake test:web ;; 1) rake test:models ;; 2) rake test:js ;; esac