guardian/frontend — pull request #1870 by janua (2013-10-04 15:16:13+00:00)
Title: Facia tests

- Add `redirectWithParameters` to `LinkTo` so that redirects in both Facia and Front are the same
- Add `hasItems` to `Front` in Facia, to check if a path has anything in it
- Add `FaciaControllerTest`, initial tests for Facia

This differs from the tests in Front in that I am using the `BeforeAndAfterAll` mixin to wait for up to `1 minute` for each main front (`UK`, `US`, `AU`) to have items in them.

In Front, a global object `FrontTestGlobal` is used with the mixin `GlobalSettings`, which then the `onStart` is overridden to wait for the front to load. This doesn't work for Facia as it needs more than one refresh, which can take up to one minute, and waiting for one minute would be bad in `onStart` as this was running before every test.