Move javascript test helpers to IntegrationTest
Move javascript test helpers to IntegrationTest

Test helpers are useful for both IntegrationTest and
JavascriptIntegrationTest classes.

* Add helper to check whether test is using javascript
* Switch action within save_edition based on this (default driver has
no trigger action)

alphagov/publisher,leftees/publisher,telekomatrix/publisher,leftees/publisher,telekomatrix/publisher,telekomatrix/publisher,alphagov/publisher,alphagov/publisher,telekomatrix/publisher,leftees/publisher,leftees/publisher