oro_behat_extension:
  suites:
    OroDataAuditBundle:
      contexts:
        - Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FormContext
        - Oro\Bundle\DataGridBundle\Tests\Behat\Context\GridContext
        - Oro\Bundle\SecurityBundle\Tests\Behat\Context\ACLContext
      paths:
        - '@OroDataAuditBundle/Tests/Behat/Features'

  elements:
    Create User Form:
      selector: 'form[name="oro_user_user_form"]'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          RoleForTest Role:
            locator: '//label[contains(.,"RoleForTest")]/../input[@type="checkbox"]'
            type: xpath
          OroCRM Organization:
            locator: '(//div[contains(@class,"organization-structure")]//input[@type="checkbox"][@data-name="organization"])[1]'
            type: xpath
          Birthday:
            locator: 'input[id^="oro_user_user_form_birthday-uid"]'
            type: css
            element: DateTimePicker

    Audit History Grid:
      class: Oro\Bundle\DataGridBundle\Tests\Behat\Element\Grid
      selector: 'div[data-page-component-name^="audit-history-grid"]'
