default:

  suites:
    web:
      paths:
        features:
          features/suites/store
      contexts:
        - Context\Data\FixtureContext
        - Context\Data\CustomerContext
        - Context\Data\ProductContext
        - Context\Data\BasketContext
        - Context\Data\OrderContext
        - Context\Data\AmazonContext
        - Context\Data\ConfigContext
        - Context\Data\IpnContext:
          - 'http://amazon-payment.dev'
        - Context\Web\Store\LoginContext
        - Context\Web\Store\RegisterContext
        - Context\Web\Store\BasketContext
        - Context\Web\Store\CheckoutContext
        - Context\Web\Store\BillingContext
        - Context\Web\Store\ShippingContext
        - Context\Web\Store\AmazonContext
        - Context\Web\Store\CustomerContext
        - Context\Web\Store\ProductContext
        - Context\Web\Admin\LoginContext
        - Context\Web\Admin\OrderContext

  extensions:
    Cjm\Behat\StepThroughExtension: ~
    Bex\Behat\Magento2InitExtension:
      magento_bootstrap:
        -
          path: '../../../app/bootstrap.php'
      magento_configs:
        -
          path: 'admin/security/use_form_key'
          value: 0
        -
          path: 'is_behat_running'
          value: 1
        -
          path: 'currency/options/allow'
          value: 'GBP,CHF'
        -
          path: 'payment/amazon_payment/lwa_enabled'
          value: '1'
        -
          path: 'payment/amazon_payment/pwa_enabled'
          value: '1'
        -
          path: 'payment/amazon_payment/payment_action'
          value: 'authorize'
        -
          path: 'payment/amazon_payment/authorization_mode'
          value: 'synchronous'
        -
          path: 'payment/amazon_payment/update_mechanism'
          value: 'instant'
        -
          path: 'payment/amazon_payment/payment_region'
          value: 'uk'
        -
          path: 'payment/amazon_payment/sandbox'
          value: '1'
        -
          path: 'general/locale/code'
          value: 'en_GB'
        -
          path: 'currency/options/base'
          value: 'GBP'
        -
          path: 'currency/options/default'
          value: 'GBP'
        -
          path: 'tax/defaults/country'
          value: 'GB'
        -
          path: 'general/country/default '
          value: 'GB'
        -
          path: 'general/country/allow '
          value: 'GB'

    SensioLabs\Behat\PageObjectExtension:
      namespaces:
        page: [Page]
        element: [Page\Element]

    Behat\MinkExtension:
      base_url: 'https://amazon-payment.dev'
      show_cmd: echo '%s'
      show_tmp_dir: /vagrant
      default_session: goutte
      javascript_session: firefox
      sessions:
        goutte:
          goutte:
            guzzle_parameters:
              verify: false
        firefox:
          selenium2:
            wd_host: http://localhost:4444/wd/hub
            browser: firefox
        host_firefox:
          selenium2:
            wd_host: http://localhost:4445/wd/hub
            browser: firefox

firefox:
  extensions:
    Behat\MinkExtension\ServiceContainer\MinkExtension:
      default_session: host_firefox
      javascript_session: host_firefox
