oro_behat_extension:
  elements:
    TypeSelectElement:
      selector: '.select2-choice'

    TypeSelectList:
      selector: '.select2-results'

    SearchSuggestionList:
      selector: '.search-suggestion-list'

    Search Form:
      selector: '#oro_website_search_search'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          Query: 'search'

    Search Form Field:
      selector: '#oro_website_search_search [name="search"]'

    Search Submit:
      selector:
         type: xpath
         locator: '//button[@type="submit"][text()="Search"]'

    Theme Form:
      selector: 'form[name="theme"]'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          ThemeUseDefault: 'theme[oro_frontend___frontend_theme][use_parent_scope_value]'
          Theme: 'theme[oro_frontend___frontend_theme][value]'


  pages:
    Search Result:
      class: Oro\Bundle\SearchBundle\Tests\Behat\Page\SearchResult
      route: 'oro_search_results'

    Tag Search Result:
      class: Oro\Bundle\SearchBundle\Tests\Behat\Page\SearchResult
      route: 'oro_tag_search'

  suites:
    OroSearchBundle:
      contexts:
        - Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
        - Oro\Bundle\ConfigBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\DataGridBundle\Tests\Behat\Context\GridContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FormContext
        - Oro\Bundle\SecurityBundle\Tests\Behat\Context\ACLContext
        - Oro\Bundle\SearchBundle\Tests\Behat\Context\SearchContext
      paths:
        - '@OroSearchBundle/Tests/Behat/Features'

  optional_listeners:
    required_for_fixtures:
      - 'oro_search.index_listener'
