Skip to content

[Feature] Option to not follow redirects in the requests API #12911

@Meemaw

Description

@Meemaw

The request fixture methods seems to follow the redirects by default. It would be great if there was an option to disable this behaviour.

const response = await request.get('http://localhost:3000/url', { followRedirects: false })
expect(response.status()).toBe(302)
expect(response.headers()['Location']).toBe('/login')

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions