Skip to content

Ability to store browser cookies/auth state #14

@nopunYntendeed

Description

@nopunYntendeed

Is your feature request related to a problem? Please describe

Most real use cases require some authentication.
Often, that authentication requires interacting with a browser.
Since the focus of this repo is api testing, it makes sense to me to store the auth state/api key after a successful authentication

Describe the solution you'd like

A working example of how to fetch a temporary token from the browser (JWE, Auth token), cache it and use it on following tests, a la playwright storage state

Describe alternatives you've considered

No response

Are you able to assist to bring the feature to reality?

yes, I can

Additional context

https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-storage-state

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions