oro_behat_extension:
  suites:
    OroPaymentBundle:
      contexts:
        - Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
        - Oro\Bundle\DataGridBundle\Tests\Behat\Context\GridContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FormContext
        - Oro\Bundle\UIBundle\Tests\Behat\Context\BreadcrumbContext
        - Oro\Bundle\ConfigBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\NavigationBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\SecurityBundle\Tests\Behat\Context\ACLContext
        - Oro\Bundle\UIBundle\Tests\Behat\Context\ContextSelectorContext
        - Oro\Bundle\LocaleBundle\Tests\Behat\Context\LocalizationContext
        - Oro\Bundle\QueryDesignerBundle\Tests\Behat\Context\QueryDesignerContext
      paths:
        - '@OroPaymentBundle/Tests/Behat/Features'

  elements:
    Payment Method Config Type Field:
      class: Oro\Bundle\PaymentBundle\Tests\Behat\Element\PaymentMethodConfigType
      selector:
        type: 'xpath'
        locator: '//div[@id[starts-with(.,"uniform-oro_payment_methods_configs_rule_method")]]'

    Payment Rule Form:
      selector: "form[id^='oro_payment_methods_configs_rule-uid']"
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          Method:
            type: 'xpath'
            locator: '//div[@id[starts-with(.,"uniform-oro_payment_methods_configs_rule_method")]]'
            element: Payment Method Config Type Field
          Destination1PostalCodes: 'oro_payment_methods_configs_rule[destinations][0][postalCodes]'
          Country: 'oro_payment_methods_configs_rule[destinations][0][country]'
          Country2: 'oro_payment_methods_configs_rule[destinations][1][country]'
          Expression: 'oro_payment_methods_configs_rule[rule][expression]'
