Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OpenAnalyticsConfigStep.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Backend\Test\Page\Adminhtml\Dashboard;
9 use Magento\Backend\Test\Page\Adminhtml\SystemConfigEdit;
10 use Magento\Mtf\TestStep\TestStepInterface;
11 
17 class OpenAnalyticsConfigStep implements TestStepInterface
18 {
24  private $dashboard;
25 
31  private $systemConfigPage;
32 
37  public function __construct(Dashboard $dashboard, SystemConfigEdit $systemConfigPage)
38  {
39  $this->dashboard = $dashboard;
40  $this->systemConfigPage = $systemConfigPage;
41  }
42 
48  public function run()
49  {
50  $this->dashboard->open();
51  $this->dashboard->getMenuBlock()->navigate('Stores > Configuration');
52  $this->systemConfigPage->getForm()->getGroup('analytics', 'general');
53  }
54 }
__construct(Dashboard $dashboard, SystemConfigEdit $systemConfigPage)