Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for specification of a preferred profile #1334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 1, 2021

  1. Add support for specification of a prefered profile

    In many situations it is desirable to have a specific profile that is
    used when none is specified, however because of the way in which all
    profiles inherit from the `default` profile, this is not currently
    possible.
    
    For example, if you have different MinkExtension configurations for a
    range of different browsers, then each browser may only be specified in
    its own profile. This works well, but often you will want to specify a
    default browser configuration.
    
    To achieve this you may think that you can set the Extension
    configuration for your preferred browser into the `default` profile, but
    this means that all other profiles will include this configuration, and
    may not work as expected.
    
    This change introduces the concept of a preferred profile, which is the
    profile which will be used unless the `--profile` CLI argument is
    provided to override it.
    
    This means that if you have profiles for chrome, headlesschrome,
    firefox, headlessfirefox, edge, and headlessedge, you can choose to
    specify a preferred profile of `headlesschrome`, which will be used
    unless you explicitly set the `--profile` argument when running behat.
    andrewnicols committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    1fed689 View commit details
    Browse the repository at this point in the history