Assert how the site answers an old path: a redirect (permanent 301, temporary 302) to a path or an address. The step asks the site itself, without following the redirect.
Examples
Then "/webship-test-old-bread" should redirect to "/breads/"
Then "/webship-test-old-bread" should redirect temporarily to "/breads/"
And "/webship-test-old-blog" should redirect permanently to "/blog/"
Then "/latest" should redirect temporarily to "/blog/tracking-wild-yeast/"
Then "/breads/baguete" should redirect permanently to "/breads/baguette/"
Pattern
Then(/^"([^"]*)" should redirect (temporarily |permanently )?to "([^"]*)"$/, …)
Part of @webship-js/wagtail-steps (github.com/webship/wagtail-steps), a step pack for Webship-js 2.0.x.