Debugging Integration tests

If you want to see the page that is being tested in our integration tests, you can usesave_and_open_page to see what's rendered. This is helpful when a page is mostly comprised ofGOV.UK Publishing Components

Note: If you wish to have your own local wip configs, wip* is in the .gitignore, so as an examplewip-kittens.yaml will be ignored

Generate a config for known document_types and example pages

Running the rake task below will retrieve the document_types where rendering_app = government-frontend from the search api. It will then generate test/wraith/wip-config-all-document-types.yaml, this is a wraith config file containing the top 10 (can be overidden with :sample_size) example pages for each type.

The yaml file contains a custom key of :document_types not used by wraith but can be used to quickly scan and see which types the search api believes government-frontend is responsible for.

bundle exec rake wraith:update_document_types[:sample_size]

Adding a new format

There’s a rails generator you can use to stub the basic files needed for a new format. It stubs the following: