oro_behat_extension:
  elements:
    Payment Term Integration Form:
      selector: 'form[name="oro_integration_channel_form"]'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          Label: 'oro_integration_channel_form[transport][labels][values][default]'
          Short Label: 'oro_integration_channel_form[transport][shortLabels][values][default]'

    Payment Term Create New:
      selector:
        locator: '//label[text()="Payment Term"]/../..//button[contains(@class,"entity-create-btn")]'
        type: xpath

    Payment Term Form:
      selector: 'form[name="oro_payment_term"]'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          Label: 'oro_payment_term[label]'

    Delete Payment Term Activity:
      selector:
        type: xpath
        locator: '//div[@class="activity-context-activity-items"]//span[text()="Payment term"]/parent::a/following-sibling::span'

  suites:
    OroPaymentTermBundle:
      contexts:
        - Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
        - Oro\Bundle\ApplicationBundle\Tests\Behat\Context\CommerceMainContext
        - Oro\Bundle\CheckoutBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\ConfigBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\DataGridBundle\Tests\Behat\Context\GridContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FormContext
        - Oro\Bundle\ProductBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\AttachmentBundle\Tests\Behat\Context\AttachmentImageContext
        - Oro\Bundle\ShoppingListBundle\Tests\Behat\Context\ShoppingListContext
        - Oro\Bundle\ActivityListBundle\Tests\Behat\Context\ActivityContext
      paths:
        - '@OroPaymentTermBundle/Tests/Behat/Features'
