Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Readiness.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Mtf\Block\Block;
10 use Magento\Mtf\Client\Locator;
11 
15 class Readiness extends Block
16 {
22  protected $readinessCheck = "[ng-click*='state.go']";
23 
29  protected $next = "[ng-click*='next']";
30 
36  protected $completedMessage = '[ng-switch-when="true"]';
37 
43  protected $phpVersionCheck = '#php-version';
44 
50  protected $phpExtensionCheck = '#php-extensions';
51 
57  protected $filePermissionCheck = '#php-permissions';
58 
64  public function clickReadinessCheck()
65  {
66  $this->_rootElement->find($this->readinessCheck, Locator::SELECTOR_CSS)->click();
67  $this->waitForElementVisible($this->completedMessage, Locator::SELECTOR_CSS);
68  }
69 
75  public function clickNext()
76  {
77  $this->_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
78  }
79 
85  public function getFilePermissionCheck()
86  {
87  return $this->_rootElement->find($this->filePermissionCheck, Locator::SELECTOR_CSS)->getText();
88  }
89 
95  public function getPhpVersionCheck()
96  {
97  return $this->_rootElement->find($this->phpVersionCheck, Locator::SELECTOR_CSS)->getText();
98  }
99 
105  public function getPhpExtensionsCheck()
106  {
107  return $this->_rootElement->find($this->phpExtensionCheck, Locator::SELECTOR_CSS)->getText();
108  }
109 }