oro_behat_extension:
  suites:
    OroFrontendBundle:
      contexts:
        - Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\OroMainContext
        - Oro\Bundle\ConfigBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FormContext
        - Oro\Bundle\ApplicationBundle\Tests\Behat\Context\CommerceMainContext
        - Oro\Bundle\FormBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\UserBundle\Tests\Behat\Context\FeatureContext
        - Oro\Bundle\DataGridBundle\Tests\Behat\Context\GridContext
        - Oro\Bundle\CustomerBundle\Tests\Behat\Context\CustomerUserContext
        - Oro\Bundle\CustomerBundle\Tests\Behat\Context\ACLContext
        - Oro\Bundle\CustomerBundle\Tests\Behat\Context\FrontendGridContext
        - Oro\Bundle\CustomerBundle\Tests\Behat\Context\RegistrationInstructionFeatureContext
        - Oro\Bundle\CustomerBundle\Tests\Behat\Context\CustomerVisitorContext
      paths:
        - '@OroFrontendBundle/Tests/Behat/Features'
  elements:
    FrontendMainMenu:
      selector: '[data-main-menu-container]'
      class: Oro\Bundle\FrontendBundle\Tests\Behat\Element\FrontendMainMenu
    FrontendMainMenuDropdown:
      selector: '[data-main-menu-item]'
    Node1:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1")]/..'
    Node2:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-2")]/..'
    Node1_1:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-1")]/..'
    Node1_1_Title:
      selector:
        type: 'xpath'
        locator: '//a[contains(@class,"mega-menu-depth-1__title-inner")][contains(text(),"Node-1-1")]'
    Node1_1Active:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-1")]/ancestor::*[@data-main-menu-item="2"][contains(@class, "show")]'
    Node1_2:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-2")]/..'
    Node1_3:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-3")]/..'
    Node1_3Active:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-3")]/ancestor::*[@data-main-menu-item="2"][contains(@class, "show")]'
    Node1_1_1:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-1-1")]/..'
    Node1_1_1_1:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node-1-1-1-1")]/..'
    CloseActiveItem:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item="2"][contains(@class, "show")]//button[@data-role="close"]'
    NodeWithLongName:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"Node with loooooooooooooooong name")]/ancestor::*[@data-main-menu-item="2"]'
    OnSaleImage:
      selector:
        type: xpath
        locator: '//div[contains(@class, "mega-menu-depth-2__featured-list")]//img[@alt="On Sale"]'
    OnSaleItem_level_1:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"On Sale")]/ancestor::*[@data-main-menu-item="1"]'
    OnSaleItem_level_2:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"On Sale")]/ancestor::*[@data-main-menu-item="2"]'
    OnSaleItem_level_3:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"On Sale")]/ancestor::*[@data-main-menu-item="3"]'
    OnSaleItem_level_4:
      selector:
        type: 'xpath'
        locator: '//*[@data-main-menu-item]//span[contains(text(),"On Sale")]/ancestor::*[@data-main-menu-item="4"]'
    Frontend Grid:
      selector: 'div.oro-datagrid'
      class: Oro\Bundle\FrontendBundle\Tests\Behat\Element\Grid
    FrontendGridRow:
      selector: '.grid-row'
      class: Oro\Bundle\FrontendBundle\Tests\Behat\Element\GridRow
    FrontendGridToolbarPaginator:
      selector: '.visible-items-counter'
      class: Oro\Bundle\FrontendBundle\Tests\Behat\Element\GridToolbarPaginator
    FrontendMassActionHeadCheckbox:
      selector: 'th.select-all-header-cell button'
    FrontendGridNextPageButton:
      selector: '.oro-pagination [data-grid-pagination-direction="next"]'
    FrontendGridPrevPageButton:
      selector: '.oro-pagination [data-grid-pagination-direction="prev"]'
    FrontendGridTopToolbar:
      selector: '[data-grid-toolbar="top"]'
    FrontendGridBottomToolbar:
      selector: '[data-grid-toolbar="bottom"]'
    FrontendGridActionRefreshButton:
      selector: '.refresh-action'
    FrontendGridActionResetButton:
      selector: '.reset-action'
    Frontend Grid Action Filter Button:
      selector: '.action[title="Filter Toggle"]'
    DetachedSelect2Result:
      selector: '#select2-drop-mask + .select2-drop .select2-results'
    Active Sticky Panel:
      selector: ".sticky-panel.sticky-panel--top.has-content"
    Bottom Active Sticky Panel:
      selector: ".sticky-panel.sticky-panel--bottom.has-content"
    Main Menu Into Header:
      selector: ".page-header .header-row"
    Main Menu Into Sticky Panel:
      selector: ".sticky-panel.sticky-panel--top.has-content .header-row"
    Product Filter Into Sticky Panel:
      selector: ".sticky-panel.sticky-panel--top.has-content .filter-box"
    Product Filter Into Page Content:
      selector: ".page-content .filter-box"
    Grid Filters Button Into Sticky Panel:
      selector: ".sticky-panel.sticky-panel--top.has-content .action[title=\"Filter Toggle\"]"
    Header:
      selector: ".page-header"
    Copyright:
      selector: ".copyright"
    Fullscreen Popup:
      selector: ".fullscreen-popup"
    Fullscreen Popup Header:
      selector: '.fullscreen-popup [data-role="header"]'
    Popup Gallery Widget:
      selector: ".popup-gallery-widget"
    Popup Gallery Widget Image:
      selector:
        type: 'xpath'
        locator: '//div[contains(@class,"popup-gallery-widget")]//img'
    Popup Gallery Widget Picture:
      selector: ".popup-gallery-widget picture"
    Popover Image:
      selector: "div.popover img"
    Popup Gallery Widget Close:
      selector: ".popup-gallery-widget button.close-dialog"
    Fullscreen Popup Apply Filters:
      selector: '.fullscreen-popup button[data-role="apply"]'
    Filter Settings Form:
      selector: 'form[name="theme"]'
      class: Oro\Bundle\TestFrameworkBundle\Behat\Element\Form
      options:
        mapping:
          Use Default: 'theme[oro_frontend___filter_value_selectors][use_parent_scope_value]'
          Value Selectors: 'theme[oro_frontend___filter_value_selectors][value]'
    Filter By Step:
      selector:
        locator: '//button[contains(@class, "filter-criteria-selector")]/span[contains(text(),"Filter By Step")]/..'
        type: 'xpath'
    Filter By Name:
      selector:
        locator: '//button[contains(@class, "filter-criteria-selector")]/span[contains(text(),"Filter By Name")]/..'
        type: 'xpath'
    Filter By First Name:
      selector:
        locator: '//button[contains(@class, "filter-criteria-selector")]/span[contains(text(),"Filter By First Name")]/..'
        type: 'xpath'
    Filter By Last Name:
      selector:
        locator: '//button[contains(@class, "filter-criteria-selector")]/span[contains(text(),"Filter By Last Name")]/..'
        type: 'xpath'
    Filter By Enabled:
      selector:
        locator: '//button[contains(@class, "filter-criteria-selector")]/span[contains(text(), "Filter By Enabled")]/..'
        type: 'xpath'
    Opened Filter Dropdown:
      selector: '.filter-criteria.dropdown-menu.criteria-visible'
    Filter Checkboxes:
      selector: ".datagrid-manager .filter-default .ui-multiselect-checkboxes .datagrid-manager__list-item"
    Filter Checkboxes All At Once:
      selector: ".datagrid-manager .ui-multiselect-checkboxes .filters-dropdown__items"
    Filters Dropdown:
      selector: '[id^="grid-frontend-requests-grid"] a.action[title="Filter Toggle"]'
    Requests For Quote Grid:
      selector: '[id^="grid-frontend-requests-grid"]'
      class: Oro\Bundle\FrontendBundle\Tests\Behat\Element\Grid
    Second Save Button:
      selector:
        type: xpath
        # when should be clicked second button on the page, because it visible after changes on page
        locator: '(//div[@data-bottom-actions]/button[contains(text(), "Save") or contains(text(), "Create")])'
    Catalog Switcher:
      selector: '.oro-datagrid .catalog-switcher'
    Catalog Switcher Toggle:
      selector: '.catalog-switcher > .dropdown-toggle'
    Sticky Filters Dropdown:
      selector: '[data-sticky-name="top-sticky-panel"] a.action[title="Filter Toggle"]'
    Mass Actions Into Sticky Panel:
      selector: '.sticky-panel.sticky-panel--top.has-content [data-mass-actions-container]'
    Pegination Into Sticky Panel:
      selector: '.sticky-panel.sticky-panel--top.has-content [data-grid-pagesize]'
    Sorting Into Sticky Panel:
      selector: '.sticky-panel.sticky-panel--top.has-content [data-grid-sorting]'
    Catalog Switcher Into Sticky Panel:
      selector: '.sticky-panel.sticky-panel--top.has-content .catalog-switcher'
