<?php

namespace Oro\Bundle\ConfigBundle\Tests\Behat\Context;

use Oro\Bundle\ConfigBundle\Tests\Behat\Element\SidebarConfigMenu;
use Oro\Bundle\TestFrameworkBundle\Behat\Context\OroFeatureContext;
use Oro\Bundle\TestFrameworkBundle\Behat\Element\OroPageObjectAware;
use Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\PageObjectDictionary;

class FeatureContext extends OroFeatureContext implements OroPageObjectAware
{
    use PageObjectDictionary;

    /**
     * Click link on sidebar in configuration menu
     *
     * Example: Given I click "Inventory" on configuration sidebar
     *
     * @When /^(?:|I )click "(?P<link>(?:[^"]|\\")*)" on configuration sidebar$/
     */
    public function clickLinkOnConfigurationSidebar($link)
    {
        /** @var SidebarConfigMenu $sidebarConfigMenu */
        $sidebarConfigMenu = $this->getPage()->getElement('SidebarConfigMenu');
        $sidebarConfigMenu->clickLink($link);
    }
}

<?php

namespace Oro\Bundle\ConfigBundle\Tests\Behat\Context;

use Oro\Bundle\ConfigBundle\Tests\Behat\Element\SidebarConfigMenu;
use Oro\Bundle\TestFrameworkBundle\Behat\Context\OroFeatureContext;
use Oro\Bundle\TestFrameworkBundle\Behat\Element\OroPageObjectAware;
use Oro\Bundle\TestFrameworkBundle\Tests\Behat\Context\PageObjectDictionary;

class FeatureContext extends OroFeatureContext implements OroPageObjectAware
{
    use PageObjectDictionary;

    /**
     * Click on button or link on left panel in configuration menu
     * Example: Given I click "Edit" on left panel
     * Example: When I click "Save and Close" on left panel
     *
     * @When /^(?:|I )click "(?P<button>(?:[^"]|\\")*)" on left panel$/
     */
    public function pressButtonOnLeftPanel($button)
    {
        /** @var SidebarConfigMenu $sidebarConfigMenu */
        $sidebarConfigMenu = $this->getPage()->getElement('SidebarConfigMenu');
        $sidebarConfigMenu->clickLink($button);
    }
}

--- 
+++ 
@@ -12,16 +12,16 @@
     use PageObjectDictionary;
 
     /**
-     * Click on button or link on left panel in configuration menu
-     * Example: Given I click "Edit" on left panel
-     * Example: When I click "Save and Close" on left panel
+     * Click link on sidebar in configuration menu
      *
-     * @When /^(?:|I )click "(?P<button>(?:[^"]|\\")*)" on left panel$/
+     * Example: Given I click "Inventory" on configuration sidebar
+     *
+     * @When /^(?:|I )click "(?P<link>(?:[^"]|\\")*)" on configuration sidebar$/
      */
-    public function pressButtonOnLeftPanel($button)
+    public function clickLinkOnConfigurationSidebar($link)
     {
         /** @var SidebarConfigMenu $sidebarConfigMenu */
         $sidebarConfigMenu = $this->getPage()->getElement('SidebarConfigMenu');
-        $sidebarConfigMenu->clickLink($button);
+        $sidebarConfigMenu->clickLink($link);
     }
 }
BB-8120: Test and merge
 - cr fixes
