Skip to content

Support disabling global context and pageΒ #326

Description

@nickgarlis

πŸš€ Feature Proposal

Apologies if there is already a way to do this. It looks like this preset spawns a new context and page for each test. Is there a way to disable this behavior ?

Motivation

There are some cases when I am testing with an unknown number of contexts and pages. This is when I have to manage their creation on my own.

Example

Maybe by setting something like that into the config file ?

module.exports = {
  page: 'none',
  browserContext: 'none'
}

Pitch

I think it would be useful for those who only need a global browser instance across tests. I'd like to hear your thoughts. I'd be happy to help by opening a PR for it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions