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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions