Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

I would like to use MinkContext in two different Contexts. #348

Description

@mtopcu

I would like to use MinkContext functions in FeatureContext and other Context named as ApiContext. But when I try to use, I got below error.

Is there anyone who solved this issue? Thanks.

Step "the response should be json" is already defined in FeatureContext::theResponseShouldBeJson()

My FeatureContext class like: class FeatureContext extends MinkContext
My ApiContext class like: class ApiContext extends FeatureContext implements Context

And my behat yml is like:

default:
  suites:
    default:
      contexts:
        - FeatureContext:
            parameters:
        - ApiContext:
            parameters:

  extensions:
    Behat\MinkExtension:
      base_url: http://api-v2-int.somc.io/
      browser_name: chrome
      default_session: default
      javascript_session: selenium2
      sessions:
        default:
          goutte:
            guzzle_parameters:
              verify: false
        selenium2:
          selenium2:
            wd_host: http://127.0.0.1:4444/wd/hub
            capabilities: {browserVersion:  , version:  }

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions