Skip to content
On this page

Working with Redirects

Asserting on Expected Redirect Responses

Alba comes with some out of the box assertions to declaratively check expected redirects.

public async Task asserting_redirects(IAlbaHost system)
    await system.Scenario(_ =>
        // should redirect to the url

        // should redirect permanently to the url

snippet source | anchor